docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct PredictionSwitchingSmoothing

    Optional component that can be added either on a per entity or on per-chunk basis that allow to customise the transition time when converting from predicted to interpolated GhostMode. If the component is present, the TransitionDurationSeconds take precendence over the settings passed to the TransitionDurationSeconds.

    Implements
    IComponentData
    IQueryTypeParameter
    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Unity.NetCode
    Assembly: Unity.NetCode.dll
    Syntax
    public struct PredictionSwitchingSmoothing : IComponentData, IQueryTypeParameter

    Fields

    TransitionDurationSeconds

    We smooth the Unity.Transforms.LocalToWorld of the target entity via GhostPredictionSmoothing system (and component SwitchPredictionSmoothing). How gentle should this smooth transformation be? Sensible default: 1.0s. Note: Also prevents converting the ghost again until complete.

    Declaration
    public float TransitionDurationSeconds
    Field Value
    Type Description
    float

    Implements

    Unity.Entities.IComponentData
    Unity.Entities.IQueryTypeParameter
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)