docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct DriverStatistics

    A structure that holds various statistics about a NetworkDriver and is obtained by calling GetStatistics(). These statistics are global to the driver instance and account for the traffic of all its connections since the driver was created.

    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 DriverStatistics
    Remarks

    All traffic-related statistics are meant to represent network usage at the network layer and above (L3+), which is most representative of how bandwidth is typically measured by cloud providers. There are some caveats relating to how Unity Transport can infer packet sizes however. Refer to PacketSizeStatistics for details.

    Fields

    RxBandwidth

    Information about the bandwidth usage of incoming traffic.

    Declaration
    public BandwidthStatistics RxBandwidth
    Field Value
    Type Description
    BandwidthStatistics

    RxMaximumQueueUsage

    Maximum usage (in number of packets) of the receive queue over the lifetime of the driver. See receiveQueueCapacity for details.

    Declaration
    public uint RxMaximumQueueUsage
    Field Value
    Type Description
    uint

    RxMeanQueueUsage

    Average usage (in number of packets) of the receive queue over the lifetime of the driver. See receiveQueueCapacity for details.

    Declaration
    public float RxMeanQueueUsage
    Field Value
    Type Description
    float

    RxPacketSizes

    Information about the size distribution of received packets.

    Declaration
    public PacketSizeStatistics RxPacketSizes
    Field Value
    Type Description
    PacketSizeStatistics

    RxTotalBytes

    Total number of bytes received by the driver.

    Declaration
    public ulong RxTotalBytes
    Field Value
    Type Description
    ulong

    RxTotalPackets

    Total number of packets received by the driver.

    Declaration
    public ulong RxTotalPackets
    Field Value
    Type Description
    ulong

    TxBandwidth

    Information about the bandwidth usage of outgoing traffic.

    Declaration
    public BandwidthStatistics TxBandwidth
    Field Value
    Type Description
    BandwidthStatistics

    TxMaximumQueueUsage

    Maximum usage (in number of packets) of the send queue over the lifetime of the driver See sendQueueCapacity for details.

    Declaration
    public uint TxMaximumQueueUsage
    Field Value
    Type Description
    uint

    TxMeanQueueUsage

    Average usage (in number of packets) of the send queue over the lifetime of the driver See sendQueueCapacity for details.

    Declaration
    public float TxMeanQueueUsage
    Field Value
    Type Description
    float

    TxPacketSizes

    Information about the size distribution of transmitted packets.

    Declaration
    public PacketSizeStatistics TxPacketSizes
    Field Value
    Type Description
    PacketSizeStatistics

    TxTotalBytes

    Total number of bytes transmitted by the driver.

    Declaration
    public ulong TxTotalBytes
    Field Value
    Type Description
    ulong

    TxTotalPackets

    Total number of packets transmitted by the driver.

    Declaration
    public ulong TxTotalPackets
    Field Value
    Type Description
    ulong
    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)