Class CameraController
Class used to activate and deactivate a camera behavior to control camera interaction.
Inherited Members
UnityEngine.Component.GetComponentInParent<T>(System.Boolean)
UnityEngine.Object.FindObjectsOfType<T>(System.Boolean)
UnityEngine.Object.FindObjectOfType<T>(System.Boolean)
Namespace: Unity.Industrial.Forma.Staging.Cinemachine
Syntax
[ExecuteInEditMode]
[RequireComponent(typeof(CinemachineVirtualCamera))]
public class CameraController : CameraControllerBase
Methods
Activate()
Activate camera controller and its behavior
Declaration
public override void Activate()
Overrides
Deactivate()
Deactivate camera controller and its behavior
Declaration
public override void Deactivate()
Overrides
SetCameraBehavior<T>()
Set camera behavior
Declaration
public T SetCameraBehavior<T>()
where T : CameraBehaviorBase
Returns
Type | Description |
---|---|
T | The new component |
Type Parameters
Name | Description |
---|---|
T | The type of data needed to be set. |