Show / Hide Table of Contents

    Class Singleton<T>

    MonoBehaviour base class used to ensure only one instance of the class exists in the application/scene.

    Inheritance
    Object
    Singleton<T>
    BroadcasterSettings
    CommandRegistry<TService>
    ComponentBroadcasterService<ServiceType, ObserverType>
    CompositorWorldAnchorLocalizationManager
    MobileRecordingSettings
    NetworkConfigurationSettings
    SpatialCoordinateSystemManager
    SpatialCoordinateTransformer
    SpatialLocalizationInitializationSettings
    StateSynchronizationPerformanceMonitor
    StateSynchronizationSceneManager
    Namespace: Microsoft.MixedReality.SpectatorView
    Assembly: cs.temp.dll.dll
    Syntax
    public class Singleton<T> : MonoBehaviour where T : Singleton<T>
    Type Parameters
    Name Description
    T

    Desired type

    Properties

    Instance

    Returns the global instance for the class

    Declaration
    public static T Instance { get; }
    Property Value
    Type Description
    T

    IsInitialized

    Returns true if the class has been instantiated, otherwise false

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

    Methods

    Awake()

    Declaration
    protected virtual void Awake()

    OnDestroy()

    Declaration
    protected virtual void OnDestroy()
    Back to top Generated by DocFX