docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct RelayNetworkParameter

    Relay protocol network parementers used to connect to the Unity Relay service. This data must be provided to the Create(NetworkSettings) function in order to be able to use connect to Relay.

    Implements
    INetworkParameter
    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Unity.Networking.Transport.Relay
    Assembly: Unity.Networking.Transport.dll
    Syntax
    public struct RelayNetworkParameter : INetworkParameter

    Fields

    RelayConnectionTimeMS

    The timeout in milliseconds after which a ping message is sent to the Relay Server to keep the connection alive.

    Declaration
    public int RelayConnectionTimeMS
    Field Value
    Type Description
    int

    ServerData

    The data that is used to describe the connection to the Relay Server.

    Declaration
    public RelayServerData ServerData
    Field Value
    Type Description
    RelayServerData

    Methods

    Validate()

    Validate the settings.

    Declaration
    public bool Validate()
    Returns
    Type Description
    bool

    True if the settings are valid, false otherwise.

    Implements

    INetworkParameter
    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)