Runtime API for object metadata
Inheritance
EditorMetadata
public static class EditorMetadata
Fields
Declaration
public const int InvalidID = -1
Field Value
Declaration
public static readonly Queue<Action> SceneReferenceActions
Field Value
Type |
Description |
Queue<Action> |
|
Declaration
public static bool SettingSceneReferences
Field Value
Properties
Declaration
public static bool IsSetup { get; }
Property Value
Methods
Declaration
public static void AddMetadataRecursively(GameObject gameObject)
Parameters
Declaration
public static int GetSceneID(Object obj)
Parameters
Type |
Name |
Description |
Object |
obj |
|
Returns
Declaration
public static Object GetSceneObject(int sceneID)
Parameters
Type |
Name |
Description |
Int32 |
sceneID |
|
Returns
Declaration
public static string PrintStatus()
Returns
Declaration
public static void Reset()
Set up EditorMetadata for the first time on a list of scene roots
This is the only thing that can cause IsSetup to be true. Some warnings are suppressed while IsSetup is false
Declaration
public static void SetupEditorMetadata(List<GameObject> roots)
Parameters
Type |
Name |
Description |
List<GameObject> |
roots |
List of scene roots for which to add metadata
|