docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ReconnectSessionOptions

    Options to configure a session when reconnecting.

    Inheritance
    object
    ReconnectSessionOptions
    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 ReconnectSessionOptions

    Properties

    Type

    The type used to create or join to the session. Defaults to a GUID if not provided. See BaseSessionOptions.Type.

    Declaration
    public string Type { get; set; }
    Property Value
    Type Description
    string

    Methods

    WithNetworkHandler(INetworkHandler)

    Configures a session to use a custom network handler.

    Declaration
    public ReconnectSessionOptions WithNetworkHandler(INetworkHandler networkHandler)
    Parameters
    Type Name Description
    INetworkHandler networkHandler

    The INetworkHandler to use

    Returns
    Type Description
    ReconnectSessionOptions

    The session options

    Remarks

    When a network handler is provided, it disables the default integration with Netcode for Game Objects and Netcode for Entities.

    In This Article
    • Properties
      • Type
    • Methods
      • WithNetworkHandler(INetworkHandler)
    Back to top
    Copyright © 2024 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)