Scene Objects Only Attribute

SceneObjectsOnly is used on object properties, and restricts the property to scene objects, and not project assets. Use this when you want to ensure an object is a scene object, and not from a project asset.

[Title("Assets only")]
[AssetsOnly]
public List<GameObject> OnlyPrefabs;

[AssetsOnly]
public GameObject SomePrefab;

[AssetsOnly]
public Material MaterialAsset;

[AssetsOnly]
public MeshRenderer SomeMeshRendererOnPrefab;

[Title("Scene Objects only")]
[SceneObjectsOnly]
public List<GameObject> OnlySceneObjects;

[SceneObjectsOnly]
public GameObject SomeSceneObject;

[SceneObjectsOnly]
public MeshRenderer SomeMeshRenderer;