docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct NetworkTimeSystemData

    Stores the internal state of the NetworkTimeSystem. The component should be used for pure inspection or backup the data. Please don't change the the state values direclty.

    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 NetworkTimeSystemData : IComponentData, IQueryTypeParameter

    Fields

    avgDeltaSimTicks

    The average of the delta ticks in between snapshot. Is the current perceived estimate of the SimulationTickRate/SnapshotTickRate. Ex: If the server send at 30hz and the sim is 60hz the avg ratio should be 2

    Declaration
    public float avgDeltaSimTicks
    Field Value
    Type Description
    float

    avgPacketInterArrival

    The packet arrival rate exponential average

    Declaration
    public float avgPacketInterArrival
    Field Value
    Type Description
    float

    currentInterpolationFrames

    The current interpolation delay ticks, used to offset the last estimated server tick in the past.

    Declaration
    public float currentInterpolationFrames
    Field Value
    Type Description
    float

    devDeltaSimTicks

    The "std" deviation / jitter (actually an approximation of it) of the perceived netTickRate.

    Declaration
    public float devDeltaSimTicks
    Field Value
    Type Description
    float

    interpolateTargetTick

    The calculated intepolated tick, used to display interpolated ghosts.

    Declaration
    public NetworkTick interpolateTargetTick
    Field Value
    Type Description
    NetworkTick

    lastTimeStamp

    The local timestamp when received the last packet. Used to calculated the perceived packet arrival rate.

    Declaration
    public uint lastTimeStamp
    Field Value
    Type Description
    uint

    latestSnapshot

    The latest snapshot tick received from the server. Used to calculate the delta ticks in between snapshot.

    Declaration
    public NetworkTick latestSnapshot
    Field Value
    Type Description
    NetworkTick

    latestSnapshotAge

    the fixed point exponential average of the difference in between the estimated tick and the actual snapshot tick received from the server. Used to adjust the latestSnapshotEstimate.

    Declaration
    public int latestSnapshotAge
    Field Value
    Type Description
    int

    latestSnapshotEstimate

    An internal estimate of the tick we are suppose to receive from server. PredictedTick and InterpolatedTick are extrapolotated from that.

    Declaration
    public NetworkTick latestSnapshotEstimate
    Field Value
    Type Description
    NetworkTick

    predictTargetTick

    The estimated tick at which the server will received the client commands.

    Declaration
    public NetworkTick predictTargetTick
    Field Value
    Type Description
    NetworkTick

    subInterpolateTargetTick

    The residual tick portion of the interpolateTargetTick.

    Declaration
    public float subInterpolateTargetTick
    Field Value
    Type Description
    float

    subPredictTargetTick

    The residual tick portion of the predictTargetTick.

    Declaration
    public float subPredictTargetTick
    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)