IsInSceneAsset(Object)
Checks if the given object is an in-scene asset.
Read time 1 minuteLast updated 13 days ago
Definition
- Type: Method
- Namespace: UnityEditor
- Assembly: UnityEditor
public static bool IsInSceneAsset(Object sourceObject)
Parameters
The object to check.
Returns
Type | Description |
|---|---|
| bool | True if |
Remarks
In-scene assets are scene objects that are referenced by one or more objects in a scene and are of an asset type. Examples of asset types include, but are not limited to, Mesh, Material, and ScriptableObject.
Additional Resources: InSceneAssetUtility.CollectInSceneAssets.