docs.unity3d.com
    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
    In This Article
    • Fields
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023