docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class NetworkOptions

    Represents network specific options that can be configured when creating or joining a ISession.

    Inheritance
    object
    NetworkOptions
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.Services.Multiplayer
    Assembly: Unity.Services.Multiplayer.dll
    Syntax
    public class NetworkOptions
    Remarks

    Use the WithNetworkOptions<T>(T, NetworkOptions) when creating or joining a ISession to configure your network setup.

    Properties

    RelayProtocol

    Overrides the RelayProtocol that the client will use when communicating with the Relay server.

    Declaration
    public RelayProtocol RelayProtocol { get; set; }
    Property Value
    Type Description
    RelayProtocol
    Remarks

    This value is only used when connecting to a ISession that is configured with one of these Network connection:
    WithRelayNetwork<T>(T, string)
    WithRelayNetwork<T>(T, RelayNetworkOptions)
    WithDistributedAuthorityNetwork<T>(T, string)
    WithDistributedAuthorityNetwork<T>(T, RelayNetworkOptions)

    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)