docs.unity3d.com
    Show / Hide Table of Contents

    Struct ReliableUtility.Parameters

    Parameters for the ReliableSequencedPipelineStage.

    Inherited Members
    ValueType.Equals(Object)
    ValueType.GetHashCode()
    ValueType.ToString()
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Namespace: Unity.Networking.Transport.Utilities
    Syntax
    public struct Parameters : INetworkParameter

    Fields

    MaximumResendTime

    Maximum amount of time to wait before a reliable packet is resent if it's not been acknowledged. Default value is 200ms, which should be set higher if all connections are expected to have a higher latency than that.

    Declaration
    public int MaximumResendTime
    Field Value
    Type Description
    Int32

    Maximum resend time in milliseconds.

    MinimumResendTime

    Minimum amount of time to wait before a reliable packet is resent if it's not been acknowledged. Default value is 64ms, which should be set lower if all connections are expected to be very good (RTT of 25ms or less).

    Declaration
    public int MinimumResendTime
    Field Value
    Type Description
    Int32

    Minimum resend time in milliseconds.

    WindowSize

    Maximum number in-flight packets per pipeline/connection combination. Default value is 32 but can be increased to 64 at the cost of slightly larger packet headers.

    Declaration
    public int WindowSize
    Field Value
    Type Description
    Int32

    Window size in number of packets.

    Methods

    Validate()

    Checks if the values for all fields are valid. This method will be automatically called when adding parameters to the NetworkSettings.

    Declaration
    public bool Validate()
    Returns
    Type Description
    Boolean

    True if the parameter is valid, false otherwise.

    Implements
    INetworkParameter.Validate()
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023