Struct CameraTarget
Structure for holding the procedural motion targets for a CinemachineCamera. The main TrackingTarget is used by default for all object tracking. Optionally, a second LookAt target can be provided to make the camera follow one object while pointing at another.
Inherited Members
Namespace: Unity.Cinemachine
Assembly: Unity.Cinemachine.dll
Syntax
[Serializable]
public struct CameraTarget
Fields
CustomLookAtTarget
If false, TrackingTarget will be used for all object tracking.
If true, then LookAt is used for rotation tracking and
TrackingTarget is used only for position tracking.
Declaration
public bool CustomLookAtTarget
Field Value
Type | Description |
---|---|
bool |
LookAtTarget
Optional secondary object for the camera to look at
Declaration
[Tooltip("Object for the camera to look at")]
public Transform LookAtTarget
Field Value
Type | Description |
---|---|
Transform |
TrackingTarget
Object for the camera to follow
Declaration
[Tooltip("Object for the camera to follow")]
public Transform TrackingTarget
Field Value
Type | Description |
---|---|
Transform |