Click or drag to resize

App Methods

The App type exposes the following members.

Methods
  NameDescription
Public methodAreRegisteredDelayedStartupComponentsReady
Checks whether all the registered ISupportDelayedStartup components are ready to allow interaction, and to receive persistent state
Public methodCoroutineInitialise
This method is used by our internal systems so do not call it directly.
(Overrides SingletonBehaviourCoroutineInitialise.)
Protected methodDisconnectGhost
Disconnect anyGhost instances we might have used
Public methodGetRegisteredDelayedStartupComponentCount
Returns the number of registered ISupportDelayedStartup components
Protected methodStatic memberGetSceneVariantEditorPrefsKey
Protected methodIsRunningEditorOfflineMode
Helper method to set offline mode for unit tests
Protected methodOnApplicationFocus
Unity component message
Protected methodOnApplicationPause
Unity component message
Protected methodOnApplicationQuit
Unity component message
Protected methodOnAwake
Override this method to call code in the Awake() method (after singleton registration, but before coroutine)
(Overrides SingletonBehaviourOnAwake.)
Protected methodOnDestroy
Unity component message
(Overrides SingletonBehaviourOnDestroy.)
Protected methodReset
Unity component message
Public methodSetupDefaultHandmenu
Setup default handmenu (when avatar was recreated)
Public methodShowContollerInstructionDialog
Displays the instructions for how to use the controllers
Public methodStatic memberWaitForSdkReadyCoroutine
Common coroutine to wait for SDK ready. This is safe to use immediately on Awake(), or after a restart/load
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