Legacy Documentation: Version 5.5
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

ClientScene.SetReconnectId

public static void SetReconnectId(int newReconnectId, PeerInfoMessage[] peers);

Parameters

newReconnectId The Id to use when reconnecting to a game.
peers The set of known peers in the game. This may be null.

Description

Sets the Id that the ClientScene will use when reconnecting to a new host after host migration.