3 Scene Management
Albin Corén редактировал(а) эту страницу 2018-03-29 00:07:06 +02:00

The MLAPI can manage synchronized scene management for you. To use this, it first has to be enabled in NetworkingConfiguration. EnableSceneSwitching has to be set to true and all scenes that are going to be used during Networking has to be registered. The NetworkingConfiguration.RegisteredScenes list has to be populated with all scene names, this a simple security measure to ensure rouge servers don't request client's to switch to sensitive scenes.

Note: The scene that is active when the Server is started has to be registered

Usage

//This can only be called on the server
NetworkSceneManager.SwitchScene(mySceneName);