Class EditorMetadata | Unity Runtime Scene Serialization | 0.1.4-preview
docs.unity3d.com
    Show / Hide Table of Contents

    Class EditorMetadata

    Runtime API for object metadata

    Inheritance
    Object
    EditorMetadata
    Namespace: Unity.RuntimeSceneSerialization
    Syntax
    public static class EditorMetadata

    Fields

    InvalidID

    Declaration
    public const int InvalidID = -1
    Field Value
    Type Description
    Int32

    SceneReferenceActions

    Declaration
    public static readonly Queue<Action> SceneReferenceActions
    Field Value
    Type Description
    Queue<Action>

    SettingSceneReferences

    Declaration
    public static bool SettingSceneReferences
    Field Value
    Type Description
    Boolean

    Properties

    IsSetup

    Declaration
    public static bool IsSetup { get; }
    Property Value
    Type Description
    Boolean

    Methods

    AddMetadataRecursively(GameObject)

    Declaration
    public static void AddMetadataRecursively(GameObject gameObject)
    Parameters
    Type Name Description
    GameObject gameObject

    GetSceneID(Object)

    Declaration
    public static int GetSceneID(Object obj)
    Parameters
    Type Name Description
    Object obj
    Returns
    Type Description
    Int32

    GetSceneObject(Int32)

    Declaration
    public static Object GetSceneObject(int sceneID)
    Parameters
    Type Name Description
    Int32 sceneID
    Returns
    Type Description
    Object

    PrintStatus()

    Declaration
    public static string PrintStatus()
    Returns
    Type Description
    String

    Reset()

    Declaration
    public static void Reset()

    SetupEditorMetadata(List<GameObject>)

    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

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023