docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct NetworkMetrics

    Singleton component for Network and Time Related Metrics.

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

    Fields

    CommandAge

    The age of the command stream

    Declaration
    public float CommandAge
    Field Value
    Type Description
    float

    InterpolationOffset

    Declaration
    public float InterpolationOffset
    Field Value
    Type Description
    float

    InterpolationScale

    Declaration
    public float InterpolationScale
    Field Value
    Type Description
    float

    Jitter

    Estimated jitter.

    Declaration
    public float Jitter
    Field Value
    Type Description
    float

    Rtt

    Estimated round-trip time.

    Declaration
    public float Rtt
    Field Value
    Type Description
    float

    SampleFraction

    Only meaningful on the client that run at variable step rate. On the server is always 1.0. Always in range is (0.0 and 1.0].

    Declaration
    public float SampleFraction
    Field Value
    Type Description
    float

    SnapshotAgeMax

    Declaration
    public float SnapshotAgeMax
    Field Value
    Type Description
    float

    SnapshotAgeMin

    Declaration
    public float SnapshotAgeMin
    Field Value
    Type Description
    float

    TimeScale

    The average value for Time Scale

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