Immerse SDK
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

Configuration

Once installed, the first step in setting up the spectator camera is to designate the camera that should be controlled. This is done by adding the component to a camera in the scene (typically Main Camera). From this component you control how the camera behaves.

Spectator Camera Component

Field Description
Movement Speed Sets the speed in which the camera moves between targets
Angular Speed Sets the speed in which the camera rotates between target rotations
Transition Curve Controls the acceleration/deceleration of the camera movement
Max Distance When using ‘Auto’ mode, this sets the maximum distance the camera should be allowed to move before it will fall back to ‘Instant’ mode.
Raycast Layer Mask Auto mode uses raycasting to move instantly instead of moving through obstacles.
On Target Changed An event that is triggered when the camera target changes

Once you have added the spectator camera to your scene, the next step is to add some Camera Targets. When a Camera Target is enabled, disabled, created or destroyed, the list of available camera targets will automatically be updated, ordered by the Priority Comparer.