docs.unity.cn
    Show / Hide Table of Contents

    Struct LookaheadSettings

    This structure holds settings for procedural lookahead.

    Namespace: Unity.Cinemachine
    Syntax
    [Serializable]
    public struct LookaheadSettings

    Fields

    Enabled

    Enable or disable procedural lookahead

    Declaration
    public bool Enabled
    Field Value
    Type Description
    Boolean

    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
    Boolean

    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")]
    [RangeSlider(0F, 30F)]
    public float Smoothing
    Field Value
    Type Description
    Single

    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.")]
    [RangeSlider(0F, 1F)]
    public float Time
    Field Value
    Type Description
    Single
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Saturday, May 6, 2023