docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct QosResult

    Represents the results of QoS measurements for a given region.

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Unity.Services.Qos.Internal
    Assembly: Unity.Services.Core.Internal.dll
    Syntax
    public struct QosResult

    Fields

    AverageLatencyMs

    Average latency of QoS measurements to the region.

    Declaration
    public int AverageLatencyMs
    Field Value
    Type Description
    int

    A positive integer, in milliseconds.

    Remarks

    The latency is determined by measuring the time between sending a packet and receiving the response for that packet, then taking the average for all responses received. Only packets for which a response was received are considered in the calculation.

    PacketLossPercent

    Percentage of packet loss observed in QoS measurements to the region.

    Declaration
    public float PacketLossPercent
    Field Value
    Type Description
    float

    A positive flow value. The range is 0.0f - 1.0f (0 - 100%).

    Remarks

    Packet loss is determined by counting the number of packets for which a response was received from the QoS server, then taking the percentage based on the total number of packets sent.

    Region

    The identifier for the service's region used in this set of QoS measurements.

    Declaration
    public string Region
    Field Value
    Type Description
    string

    A string containing the region name.

    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)