Click or drag to resize

CameraTarget Class

A target for the spectator controls, these will be listed in the UI by their game object name.
Inheritance Hierarchy
SystemObject
  UnityEngine.Object
    UnityEngine.Component
      UnityEngine.Behaviour
        UnityEngine.MonoBehaviour
          ImmerseSDK.CameraCameraTarget
            ImmerseSDK.CameraAvatarCameraTarget

Namespace:  ImmerseSDK.Camera
Assembly:  ImmerseSDK.App (in ImmerseSDK.App.dll) Version: 3.9.0.0 (3.9.0.0)
Syntax
C#
[HelpURLAttribute("https://immerse.readme.io/")]
public class CameraTarget : UnityEngine.MonoBehaviour

The CameraTarget type exposes the following members.

Constructors
  NameDescription
Public methodCameraTarget
Initializes a new instance of the CameraTarget class
Top
Properties
  NameDescription
Public propertyID
Returns a unique ID to identify this target Note: This is not used in the message GUID
Public propertyIsDefaultCamera
True is this is the default camera target
Public propertyName
Returns the name of the game object this component is attached to
Public propertyPriority
Priority of this camera target being shown, higher number is higher priority
Public propertyShouldSnap
If set to true, moving to/from this target will happen via a fade in/out and not via an animation
Public propertyUpdateSmoothingSpeed
If set to true, moving to/from this target will happen via a fade in/out and not via an animation
Top
Methods
  NameDescription
Protected methodAwake
Unity Component Method
Protected methodInitialize
Initialises a new CameraTarget. Called by our internal system.
Protected methodOnDisable
Protected methodOnEnable
Public methodSelect
Selects this target and makes it the active one.
Top
Fields
  NameDescription
Private field_priority
Private field_shouldSnap
If set to true, moving to/from this target will happen via a fade in/out and not via an animation
Private field_updateSmoothingSpeed
Smoothing speed for updates (not initial movement to the target). If 0, smoothing is disabled.
Public fieldOnEnter
A delegate that is called when the CameraService activates this target
Public fieldOnExit
A delegate that is called when the CameraService deactivates this target
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