- Home /
Question by
miterrooter · Dec 06, 2016 at 05:19 PM ·
networkingmultiplayerscene-switchingscene-changenetworkplayer
Unet Changing online scenes not working.
I am trying to use unet to manage the single player and multiplayer aspects of my game. This is due to my main player having a network identity.
The problem i am facing is i cannot use this code below because my player will not spawn(due to the aforementioned network identity).
SceneManager.LoadScene(sceneName);
And so I am trying to do this version of the code below with no success. I was hoping this would load the scene like the previous code but support objects with network identities.
NetworkManager.singleton.ServerChangeScene(sceneName);
If further clarification is needed just comment and of course any help is greatly appreciated
Comment
Answer by miterrooter · Dec 07, 2016 at 04:13 PM
Solved it was creating network manager in wrong scene so had accidentally missed creation of singleton. Should have had more coffee before asking.,