TeleportToNewServer

Method

Teleport local actor to a new server instance. This will disconnect the actor from the current server and connect to a new server instance, which will have the specified properties. To check if the teleport was successful, listen to the onConnectionStatusChanged event.

Definition

void TeleportToNewServer(int maxParticipants = 0, bool isOpen = true, bool isVisible = true, IReadOnlyCollection<KeyValuePair<string, object>> serverProperties = null, IReadOnlyCollection<string> matchProperties = null)
void TeleportToNewServer(int maxParticipants = 0, bool isOpen = true, bool isVisible = true, IReadOnlyCollection<KeyValuePair<string, object>> serverProperties = null, IReadOnlyCollection<string> matchProperties = null)

Parameters

ParameterDescription
int maxParticipants

Max number of participants (actors) allowed to join this server concurrently

bool isOpen

Can others join this server?

bool isVisible

Is this server visible to others, and should it be taken account for matchmaking?

IReadOnlyCollection<KeyValuePair<string, object>> serverProperties

Properties to set for the new server

IReadOnlyCollection<string> matchProperties

Which of the "serverProperties" should be made available for matchmaking check?