![]() | SingletonBehaviour Class |
Namespace: ImmerseSDK
public abstract class SingletonBehaviour : LoggingBehaviour
The SingletonBehaviour type exposes the following members.
Name | Description | |
---|---|---|
![]() | SingletonBehaviour | Initializes a new instance of the SingletonBehaviour class |
Name | Description | |
---|---|---|
![]() | IsReady |
Indicates if this singleton is ready or still starting up (initializing)
|
![]() | WaitingFor |
If still waiting, indicates which class this singleton is waiting for
|
Name | Description | |
---|---|---|
![]() | Awake |
Unity component method. This method cannot be overridden.
To perform initialisation tasks, override CoroutineInitialise()
To execute code in Awake(), override OnAwake() on this class
|
![]() | CoroutineInitialise |
Override this to perform initialisation tasks
This coroutine is started in Awake().
To execute code in Awake(), override OnAwake()
|
![]() | OnAwake |
Override this method to call code in the Awake() method (after singleton registration, but before coroutine)
|
![]() | OnDestroy |
Unity component method
|
![]() | OnDisable |
Unity component method.
|
![]() | OnEnable |
Unity component method.
|
Name | Description | |
---|---|---|
![]() | GetCopyOf |
Copies all properties of a component from source to target. Uses reflection to set properties.
(Defined by ComponentExtensions.) |
![]() | WaitForT |
Waits for a singleton on a coroutine
(Defined by SingletonManager.) |