CameraService Class |
Namespace: ImmerseSDK.Camera
public class CameraService : SingletonBehaviour
The CameraService type exposes the following members.
Name | Description | |
---|---|---|
CameraService | ||
CameraService | Initializes a new instance of the CameraService class |
Name | Description | |
---|---|---|
AvatarCamera |
Returns the actively displayed Camera in VR. This is set as soon as a scene is loaded.
| |
CurrentFadeState |
The current state of the screen fader
| |
DialogCamera |
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.
| |
SceneCamera |
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.
| |
Target |
Current camera target
|
Name | Description | |
---|---|---|
ClearFade |
Clear the fade
| |
ClearOverrideTarget |
Clears the current override target
| |
CoroutineInitialise |
This method is used by our internal systems so do not call it directly.
(Overrides SingletonBehaviourCoroutineInitialise.) | |
Fade |
Fade the camera
| |
OnAwake |
Override this method to call code in the Awake() method (after singleton registration, but before coroutine)
(Overrides SingletonBehaviourOnAwake.) | |
OnDestroy |
Unity component method
(Overrides SingletonBehaviourOnDestroy.) | |
SetOverrideTarget |
Sets the current override target
| |
SetTarget |
Sets the current target
| |
ToString |
returns "Camera Service"
(Overrides UnityEngine.Object.ToString.) |
Name | Description | |
---|---|---|
CameraDepthComposite | ||
CameraDepthMain | ||
CameraDepthVR | ||
FadeTimeInSeconds |
Time in seconds to fade in/out
|
Name | Description | |
---|---|---|
GetCopyOf |
Copies all properties of a component from source to target. Uses reflection to set properties.
(Defined by ComponentExtensions.) | |
WaitForT |
Waits for a singleton on a coroutine
(Defined by SingletonManager.) |