Class ReconnectSessionOptions
Options to configure a session when reconnecting.
Inherited Members
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.