Click or drag to resize

SingletonBehaviour Class

Unity-friendly Singleton class. Use this class together with SingletonManager.
Inheritance Hierarchy
SystemObject
  UnityEngine.Object
    UnityEngine.Component
      UnityEngine.Behaviour
        UnityEngine.MonoBehaviour
          ImmerseSDKLoggingBehaviour
            ImmerseSDKSingletonBehaviour
              More...

Namespace:  ImmerseSDK
Assembly:  ImmerseSDK.App (in ImmerseSDK.App.dll) Version: 3.5.0.0 (3.5.0.0)
Syntax
C#
public abstract class SingletonBehaviour : LoggingBehaviour

The SingletonBehaviour type exposes the following members.

Constructors
  NameDescription
Protected methodSingletonBehaviour
Initializes a new instance of the SingletonBehaviour class
Top
Properties
  NameDescription
Public propertyIsReady
Indicates if this singleton is ready or still starting up (initializing)
Public propertyWaitingFor
If still waiting, indicates which class this singleton is waiting for
Top
Methods
  NameDescription
Public methodAwake
Unity component method. This method cannot be overridden. To perform initialisation tasks, override CoroutineInitialise() To execute code in Awake(), override OnAwake() on this class
Public methodCoroutineInitialise
Override this to perform initialisation tasks This coroutine is started in Awake(). To execute code in Awake(), override OnAwake()
Protected methodOnAwake
Override this method to call code in the Awake() method (after singleton registration, but before coroutine)
Protected methodOnDestroy
Unity component method
Protected methodOnDisable
Unity component method.
Protected methodOnEnable
Unity component method.
Top
Extension Methods
  NameDescription
Public Extension MethodGetCopyOf
Copies all properties of a component from source to target. Uses reflection to set properties.
(Defined by ComponentExtensions.)
Public Extension MethodWaitForT
Waits for a singleton on a coroutine
(Defined by SingletonManager.)
Top
See Also
Inheritance Hierarchy
SystemObject
  UnityEngine.Object
    UnityEngine.Component
      UnityEngine.Behaviour
        UnityEngine.MonoBehaviour
          ImmerseSDKLoggingBehaviour
            ImmerseSDKSingletonBehaviour
              ImmerseSDKApp
              ImmerseSDK.AssetBundlesAssetBundleService
              ImmerseSDK.AudioAudioService
              ImmerseSDK.AudioAudioTagsService
              ImmerseSDK.AvatarsAvatarRecordingService
              ImmerseSDK.AvatarsAvatarService
              ImmerseSDK.BeaconBeaconService
              ImmerseSDK.CameraCameraService
              ImmerseSDKInstantiationService
              ImmerseSDK.LocalisationLocalisationService
              ImmerseSDK.Multiplayer.MessagingCustomMessageManager
              ImmerseSDK.Platforms.VRHeadsetActivityMonitor
              ImmerseSDK.ReportingReportingService
              ImmerseSDKSceneService
              ImmerseSDK.SessionsSession
              ImmerseSDK.UIGiftingPointsService
              ImmerseSDK.UIHandUI
              ImmerseSDK.UI.MessageDisplayMessageDisplayService
              ImmerseSDK.UITooltipManager