docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class SceneObjectGuidManager

    Manages SceneObjectGuids.

    Inheritance
    object
    SceneObjectGuidManager
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.Tutorials.Core
    Assembly: Unity.Tutorials.Core.dll
    Syntax
    public class SceneObjectGuidManager

    Properties

    Instance

    Returns the singleton instance.

    Declaration
    public static SceneObjectGuidManager Instance { get; }
    Property Value
    Type Description
    SceneObjectGuidManager
    See Also
    SceneObjectGuid

    Methods

    Contains(string)

    Does the manager contain a Component for specific GUID.

    Declaration
    public bool Contains(string id)
    Parameters
    Type Name Description
    string id

    The GUID to check

    Returns
    Type Description
    bool

    True if the given GUID is present in the component lists, false otherwise

    See Also
    SceneObjectGuid

    GetComponent(string)

    Returns the GUID Component for a specific GUID, if found.

    Declaration
    public SceneObjectGuid GetComponent(string id)
    Parameters
    Type Name Description
    string id

    The GUID of the component to retrieve

    Returns
    Type Description
    SceneObjectGuid

    The SceneObjectGuid of the given GUID if found, null otherwise

    See Also
    SceneObjectGuid

    Register(SceneObjectGuid)

    Registers a GUID component.

    Declaration
    public void Register(SceneObjectGuid component)
    Parameters
    Type Name Description
    SceneObjectGuid component

    The Component to register

    See Also
    SceneObjectGuid

    Unregister(SceneObjectGuid)

    Unregisters a GUID Component.

    Declaration
    public bool Unregister(SceneObjectGuid component)
    Parameters
    Type Name Description
    SceneObjectGuid component

    The component to remove

    Returns
    Type Description
    bool

    True if the Component was found and unregistered, false otherwise.

    See Also
    SceneObjectGuid

    See Also

    SceneObjectGuid
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)