v1.0.0
Latest
2022.3+

Class ReconnectSessionOptions

Options to configure a session when reconnecting.

Inheritance
System.Object
ReconnectSessionOptions
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Unity.Services.Multiplayer
Syntax
public class ReconnectSessionOptions

Properties

Type

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

Declaration
public string Type { get; set; }
Property Value
TypeDescription
System.String

Methods

WithNetworkHandler(INetworkHandler)

Configures a session to use a custom network handler.

Declaration
public ReconnectSessionOptions WithNetworkHandler(INetworkHandler networkHandler)
Parameters
TypeNameDescription
INetworkHandlernetworkHandler

The INetworkHandler to use

Returns
TypeDescription
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.