Click or drag to resize

App Class

This is a core component of Immerse SDK. An instance of this must be included in the scene at build index #0. This component will not be destroyed on scene load and will persist throughout the application, any additional instances will be automatically destroyed. The Inspector for the App component shows connection information and can be used to enable Offline Mode for quicker testing.
Inheritance Hierarchy

Namespace:  ImmerseSDK
Assembly:  ImmerseSDK.App (in ImmerseSDK.App.dll) Version: 3.5.0.0 (3.5.0.0)
Syntax

The App type exposes the following members.

Constructors
  NameDescription
Private methodStatic memberApp
Public methodApp
Initializes a new instance of the App class
Top
Properties
  NameDescription
Public propertyStatic memberAllowVerboseLoggingInBuilds
Returns true if the current client is a VR client
Public propertyStatic memberApplicationQuitting
True if the we received the OnApplicationQuit event form Unity
Public propertyAreNotificationsEnabled
Are notifications enabled for this app?
Public propertyStatic memberAudio
Returns the active AudioService, used for playing UI sounds and controlling volume levels
Public propertyStatic memberCameraService
Returns the active CameraService, used in the WebGL client for controlling camera
Public propertyCheckIndexesOnGameStart
Enable/Disable Checking Indexes when on play in the editor
Public propertyCheckIndexesOnLevelLoad
Enable/Disable Checking Indexes when level is loaded in the editor. Note will only be check if checkIndexesOnGameStart is enabled.
Public propertyHandUIType
The type of handui that has been configured in this app
Public propertyStatic memberIsEditor
Returns true if the application is runningin the editor. This does not need to be called from the main thread
Public propertyStatic memberIsVrClient
Returns true if the current client is a VR client
Public propertyStatic memberMessageDisplayService
Returns the message display service, for showing messages to users
Public propertyStatic memberPostProcessing
Returns the PostProcessingService, used for post processing effects
Public propertyStatic memberScene
Returns the SceneService, used for changing scenes
Public propertyStatic memberSession
Returns the current session, this provides access to session level services
Public propertyShouldHighlightEngageObject
Enable/Disable object highlighting
Public propertyStatic memberUiInputModule
Returns the UnityUiInputModule
Top
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
Fields
  NameDescription
Private field_allowVerboseLoggingInBuilds
Add open log shortcut to standalone player
Private field_areNotificationsEnabled
Are Notifications enabled for this app. If true, then Notifications will be accessible from the Hand menu.
Private field_checkIndexesOnGameStart
Enable/Disable Checking Indexes when on play in the editor
Private field_checkIndexesOnLevelLoad
Enable/Disable Checking Indexes when level is loaded in the editor.
Private field_customLocalisationFileSetPath
A custom localisation path to a set of localisation files to load for your application. These are TSV files with named text keys and localised text in. The SDK will attempt to load the current locale and platform variations from this file.
Private field_handMenuType
Which type of hand menu should be used, or should the HandUI be disabled?
Private field_isVrClientInEditor
Editor only. If this is enabled, the app will run as a VR client in the Editor. If not enabled, WebGL is emulated. Note: WebGL emulation is only available in Offline mode.
Private field_logLevel
Set the logging level of the application
Private field_logShortcut
Add open log shortcut to standalone player
Private field_logTimeStamp
Should application logs include a timestamp?
Private field_logTimeZone
Should application logs include a timezone if timestamps are used?
Private field_showControllerInstructionsAtStartup
Should the controller instructions dialog be displayed at startup?
Private field_showControllerInstructionsOnHandMenu
Should the controller instructions dialog be accessible from the Hand menu?
Private field_showToggleOutlineOnHandMenu
Should toggling the outline effect on objects be accessible from the Hand menu?
Public fieldStatic memberDefaultSettingsHandUiPageId
Id for the Default HandUI settings page. you cna use this Id to find the page.
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