SingletonManager Class |
Namespace: ImmerseSDK
public static class SingletonManager
The SingletonManager type exposes the following members.
Name | Description | |
---|---|---|
SingletonManager |
Name | Description | |
---|---|---|
AllServicesReady |
Checks if all registered services are ready
| |
Clear |
Clears out all existing singleton references. Use with care.
| |
CreateSingletonT |
Instantiates a new Singleton. Adds the component to a new GameObject and puts it in the System hierarchy
| |
GetT |
Gets a Registered service if it exists
| |
GetFromInterfaceT |
Gets a Registered service from its interface type if it exists
| |
GetTotalNumberOfServices |
Returns the number of registered services
| |
GetTotalNumberOfServicesReady |
Returns the number of registered services that is ready
| |
IsReady(Type) |
Checks if registered service is ready
| |
IsReadyT |
Checks if registered service is ready
| |
IsReadyFromInterfaceT |
Checks if registered service is ready
| |
IterateServices |
Iterate over all the services.
Note: This method locks, so take care.
| |
PrintWaitedFor |
Periodically log to the console while we wait for a service ot be ready
| |
RegisterService(SingletonBehaviour) |
Registers a service
| |
RegisterService(Type, SingletonBehaviour) |
Registers a service
| |
UnRegisterService |
Unregisters a service
| |
WaitForT |
Waits for a singleton on a coroutine
|
Name | Description | |
---|---|---|
IntervalForWaitLoggingInSeconds |
Number of whole seconds to wait before logging progress to console
| |
SystemObjectName |
The name of the global GameObject that will hold all the singletons as child objects.
|