docs.unity.cn
    Show / Hide Table of Contents

    Enum SmoothingAction

    Denotes how GhostFieldAttribute values are deserialized when received from snapshots.

    Namespace: Unity.NetCode
    Syntax
    public enum SmoothingAction

    Fields

    Name Description Value
    Clamp

    The GhostField value will clamp to the latest snapshot value as it's available.


    0
    Interpolate

    Interpolate the GhostField value between the latest two processed snapshot values, and if no data is available for the next tick, clamp at the latest snapshot value. Tweak the ClientTickRate interpolation values if too jittery, or too delayed.


    1
    InterpolateAndExtrapolate

    Interpolate the GhostField value between snapshot values, and if no data is available for the next tick, the next value is linearly extrapolated using the previous two snapshot values. Extrapolation is limited (i.e. clamped) via MaxExtrapolationTimeSimTicks.


    3
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Wednesday, June 21, 2023