TeleportActorsToNewServer

Method

Similar to TeleportToNewServer, but allows specifying a list of actors to teleport to the new server. To check if the teleport was successful, listen to the onConnectionStatusChanged event.

Definition

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

Parameters

ParameterDescription
IReadOnlyCollection<int> actorNumbers

Which actors should be teleported? This can include the local actor too

int maxParticipants

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

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?