- Home /
Question by
Tomza · Oct 09, 2016 at 01:05 PM ·
networkingmultiplayerscenenetwork
How to load the second online scene in UNET?
Network Manager has two slots for scenes: one offline and one online. What if I have more than one scene online? I know there's NetworkManager.ServerChangeScene(), but how to do that in code to swap the online scenes?
This code loads the first online scene:
NetworkManagerCustom.networkSceneName = SceneManager.GetActiveScene().name;
And the code ("NewDemoScene" is the name of the second scene):
NetworkManagerCustom.singleton.ServerChangeScene("NewDemoScene");
still loads the first scene, not the second one ("NewDemoScene").
In general, how to handle more online scenes in Unity networking?
Comment
Your answer
Follow this Question
Related Questions
Unity networking tutorial? 6 Answers
Offline testing a player object? 0 Answers
Client can't modify a gameobject from server 1 Answer
Difference between connectionToClient and connectionToServer 0 Answers
RPCMode.AllBuffered Basic Question 1 Answer