Struct LookaheadSettings
This structure holds settings for procedural lookahead.
Inherited Members
Namespace: Unity.Cinemachine
Assembly: Unity.Cinemachine.dll
Syntax
[Serializable]
public struct LookaheadSettings
Fields
Enabled
Enable or disable procedural lookahead
Declaration
public bool Enabled
Field Value
Type | Description |
---|---|
bool |
IgnoreY
If checked, movement along the Y axis will be ignored for lookahead calculations
Declaration
[Tooltip("If checked, movement along the Y axis will be ignored for lookahead calculations")]
public bool IgnoreY
Field Value
Type | Description |
---|---|
bool |
Smoothing
Controls the smoothness of the lookahead algorithm. Larger values smooth out jittery predictions and also increase prediction lag
Declaration
[Tooltip("Controls the smoothness of the lookahead algorithm. Larger values smooth out jittery predictions and also increase prediction lag")]
[Range(0, 30)]
public float Smoothing
Field Value
Type | Description |
---|---|
float |
Time
Predict the position this many seconds into the future.
Note that this setting is sensitive to noisy animation, and can amplify the noise,
resulting in undesirable jitter.
If the camera jitters unacceptably when the target is in motion, turn down this setting,
or increase the Smoothing setting, or animate the target more smoothly.
Declaration
[Tooltip("Predict the position this many seconds into the future. Note that this setting is sensitive to noisy animation, and can amplify the noise, resulting in undesirable jitter. If the camera jitters unacceptably when the target is in motion, turn down this setting, or animate the target more smoothly.")]
[Range(0, 1)]
public float Time
Field Value
Type | Description |
---|---|
float |