docs.unity3d.com
    Show / Hide Table of Contents

    Class SceneSingleton<T>

    Inheritance
    Object
    SceneSingleton<T>
    Namespace: Unity.VisualScripting
    Syntax
    public static class SceneSingleton<T>
        where T : MonoBehaviour, ISingleton
    Type Parameters
    Name Description
    T
    Remarks

    Does not support objects hidden with hide flags.

    Methods

    Awake(T)

    Declaration
    public static void Awake(T instance)
    Parameters
    Type Name Description
    T instance

    InstanceIn(Scene)

    Declaration
    public static T InstanceIn(Scene scene)
    Parameters
    Type Name Description
    Scene scene
    Returns
    Type Description
    T

    InstantiatedIn(Scene)

    Declaration
    public static bool InstantiatedIn(Scene scene)
    Parameters
    Type Name Description
    Scene scene
    Returns
    Type Description
    Boolean

    OnDestroy(T)

    Declaration
    public static void OnDestroy(T instance)
    Parameters
    Type Name Description
    T instance
    Back to top
    Terms of use
    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