Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


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

sourceObject

The object to check.

Returns

Type

Description

boolTrue if
sourceObject
is a an in-scene asset.

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.