Click or drag to resize

Scene Class

Handles indexing of IndexedMonoBehaviours, avatar spawning and scene settings. A Scene component is required for each scene in a ImmerseSDK project.
Inheritance Hierarchy

Namespace:  ImmerseSDK
Assembly:  ImmerseSDK.App (in ImmerseSDK.App.dll) Version: 3.7.0.0 (3.7.0.0)
Syntax
C#
public class Scene : UnityEngine.MonoBehaviour

The Scene type exposes the following members.

Constructors
  NameDescription
Public methodScene
Initializes a new instance of the Scene class
Top
Properties
  NameDescription
Public propertyAllowAllWebUsersToSendBeacon
Whether to allow all web users to send a beacon message
Public propertyAvatarNameTooltipsEnabled
Returns the setting for avatar name tooltips in this scene
Public propertyAvatarTeleportTrailsEnabled
Returns the setting for avatar teleport trails in this scene
Public propertyStatic memberCurrent
The currently loaded scene's Scene object
Public propertyCustomHandState
Gets a custom hand state that can be used in this scene
Public propertyDefaultCameraTarget
Camera target that should be defaulted to when the current camera target disappears
Public propertyHasCustomHandStates
Returns true if custom hand states are available and have been setup correctly
Public propertyIndex
Build index of the scene, Warning: Set on Awake()
Public propertyNavigation
Returns the Navigation settings for this scene
Public propertyPointsHandMenuEnabled
Returns the setting for points hand menu in this scene
Top
Methods
  NameDescription
Protected methodAwake
Unity component method
Protected methodOnDestroy
Unity component method
Protected methodSetupForUnitTests
Top
Events
  NameDescription
Public eventStatic memberOnSceneChange
Fired when a new scene is loaded
Top
Fields
  NameDescription
Private field_allowAllWebUsersToSendBeacon
Set this to true to allow all web users to send a beacon message. By default only the space owner can.
Private field_avatarNameTooltipsEnabled
Enable/Disable avatar name tooltips
Private field_avatarTeleportTrailsEnabled
Enable/Disable avatar teleport trails
Private field_customHandState
A custom hand state used in this scene
Private field_defaultCameraTarget
Default camera target for this scene
Private field_navigation
The Navigation settings for this scene
Private field_pointsHandMenuEnabled
Enable/disable the gifting points page on the hand menu
Public fieldIndexedObjects
Index containing all IndexedMonoBehaviours in scene, indexed by their IDs
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