When using NetworkManager.ServerChangeScene() to switch from stage 1 to stage 2, the player gets destroyed. There are no errors and the scene does change successfully.
Has anyone else come across this?
Here is my code:
[ServerCallback]
public void LoadOnline (string sceneName) {
NetworkManager.singleton.ServerChangeScene (sceneName);
}
Anyone? im having the same problem…
DontDestroyOnLoad destroys the objects connection to the server too…
HLAPI has server bugs that occur when changing scenes. Either don’t do that, or use my fixed version: Mirror - Open Source Networking for Unity - Community Showcases - Unity Discussions
Never tried to change a scene while a player is on there, but you might need to reconnect afterwards?