docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct ConnectionStatistics

    A structure that holds various statistics about a NetworkConnection and is obtained by calling GetConnectionStatistics(NetworkConnection). These statistics are particularly useful to assess the quality of a connection to a specific peer.

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Unity.Networking.Transport.Analytics
    Assembly: Unity.Networking.Transport.dll
    Syntax
    public struct ConnectionStatistics

    Fields

    Latency

    Latency statistics for the connection.

    Declaration
    public ConnectionStatistics.LatencyStatistics Latency
    Field Value
    Type Description
    ConnectionStatistics.LatencyStatistics

    Reliable

    Cumulative counters for all pipelines configured as reliable (e.g. using the ReliableSequencedPipelineStage) for this connection.

    Declaration
    public ReliableUtility.Statistics Reliable
    Field Value
    Type Description
    ReliableUtility.Statistics

    Properties

    PacketDuplicationPercent

    Percentage of packets that were duplicated on this connection.

    Declaration
    public float PacketDuplicationPercent { get; }
    Property Value
    Type Description
    float

    PacketLossPercent

    Percentage of packets that were lost on this connection.

    Declaration
    public float PacketLossPercent { get; }
    Property Value
    Type Description
    float

    PacketOutOfOrderPercent

    Percentage of packets received out of order on this connection.

    Declaration
    public float PacketOutOfOrderPercent { get; }
    Property Value
    Type Description
    float
    In This Article
    Back to top
    Copyright © 2026 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)