Class CinemachineSplineDollyLookAtTargets
CinemachineSplineDollyLookAtTargets is a component that allows the camera to look at specific points in the world as it moves along a spline.
Inheritance
CinemachineSplineDollyLookAtTargets
Inherited Members
Component.GetComponentIndex()
Object.InstantiateAsync<T>(T)
Object.InstantiateAsync<T>(T, Transform)
Object.InstantiateAsync<T>(T, Vector3, Quaternion)
Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)
Object.Instantiate(Object, Scene)
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Namespace: Unity.Cinemachine
Assembly: Unity.Cinemachine.dll
Syntax
[ExecuteAlways]
[CameraPipeline(CinemachineCore.Stage.Aim)]
[AddComponentMenu("Cinemachine/Procedural/Rotation Control/Cinemachine Spline Dolly LookAt Targets")]
[DisallowMultipleComponent]
[HelpURL("https://docs.unity3d.com/Packages/com.unity.cinemachine@3.1/manual/CinemachineSplineDollyLookAtTargets.html")]
public class CinemachineSplineDollyLookAtTargets : CinemachineComponentBase
Fields
Targets
LookAt targets for the camera at specific positions on the Spline
Declaration
[Tooltip("LookAt targets for the camera at specific positions on the Spline")]
public SplineData<CinemachineSplineDollyLookAtTargets.Item> Targets
Field Value
Type | Description |
---|---|
SplineData<CinemachineSplineDollyLookAtTargets.Item> |
Remarks
It is not recommended to modify the data array at runtime, because the infrastructure expects the array to be in strictly increasing order of distance along the spline. If you do change the array at runtime, you must take care to keep it in this order, or the results will be unpredictable.
Properties
IsValid
Returns true if this object is enabled and set up to produce results.
Declaration
public override bool IsValid { get; }
Property Value
Type | Description |
---|---|
bool |
Overrides
Stage
What part of the pipeline this fits into
Declaration
public override CinemachineCore.Stage Stage { get; }
Property Value
Type | Description |
---|---|
CinemachineCore.Stage |
Overrides
Methods
MutateCameraState(ref CameraState, float)
Mutates the camera state. This state will later be applied to the camera.
Declaration
public override void MutateCameraState(ref CameraState state, float deltaTime)
Parameters
Type | Name | Description |
---|---|---|
CameraState | state | |
float | deltaTime | Delta time for time-based effects (ignore if less than 0) |