docs.unity.cn
    Show / Hide Table of Contents

    Class ComponentSingleton<T>

    Creates a singleton.

    Inheritance
    Object
    ComponentSingleton<T>
    DiagnosticEventCollectorSingleton
    Namespace: UnityEngine.ResourceManagement.Util
    Syntax
    public abstract class ComponentSingleton<T> : MonoBehaviour where T : ComponentSingleton<T>
    Type Parameters
    Name Description
    T

    The singleton type.

    Properties

    Name Description
    Exists

    Indicates whether or not there is an existing instance of the singleton.

    Instance

    Stores the instance of the singleton.

    Methods

    Name Description
    DestroySingleton()

    Destroys the singleton.

    GetGameObjectName()

    Retrieves the name of the object.

    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on Friday, March 4, 2022
    Terms of use