Click or drag to resize

CameraService Class

An App level service that handles the Camera. This is mostly used for WebGL clients, where the camera is not controlled by the VR headset.
Inheritance Hierarchy
SystemObject
  UnityEngine.Object
    UnityEngine.Component
      UnityEngine.Behaviour
        UnityEngine.MonoBehaviour
          ImmerseSDKLoggingBehaviour
            ImmerseSDKSingletonBehaviour
              ImmerseSDK.CameraCameraService

Namespace:  ImmerseSDK.Camera
Assembly:  ImmerseSDK.App (in ImmerseSDK.App.dll) Version: 3.9.0.0 (3.9.0.0)
Syntax
C#
public class CameraService : SingletonBehaviour

The CameraService type exposes the following members.

Constructors
  NameDescription
Private methodStatic memberCameraService
Public methodCameraService
Initializes a new instance of the CameraService class
Top
Properties
  NameDescription
Public propertyAvatarCamera
Returns the actively displayed Camera in VR. This is set as soon as a scene is loaded.
Public propertyCurrentFadeState
The current state of the screen fader
Public propertyDialogCamera
Returns the actively displayed main Camera (in VR this might not be the user's view camera though). This is set as soon as a scene is loaded.
Public propertySceneCamera
Returns the actively displayed main Camera (in VR this might not be the user's view camera though). This is set as soon as a scene is loaded.
Public propertyTarget
Current camera target
Top
Methods
Events
  NameDescription
Public eventOnCameraTargetChange
Top
Fields
  NameDescription
Public fieldStatic memberCameraDepthComposite
Public fieldStatic memberCameraDepthMain
Public fieldStatic memberCameraDepthVR
Public fieldStatic memberFadeTimeInSeconds
Time in seconds to fade in/out
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