UNET StopServer() without reloading lobby scene
When the user stops hosting a game, I would like to just return them back to the previous UI window after calling NetworkManager.StopHost()
, however looking at the source it seems it automatically reloads the offline scene.
Is there a nice way to stop hosting without having the scene restart?
Answer by kharyfiler · Mar 06, 2018 at 06:31 PM
I'm sure the op has found a solution by now but I thought this would help the next person to find this. You can set the base "offlineScene" field to ""(null string) in the Start method. This will block the scene reload.
Your answer
Follow this Question
Related Questions
How to correctly change scene with a Lobby Manager? 0 Answers
i just can't seem to figure out how to make a voting system, using SyncVar hooks and commands 0 Answers
Give instantiated object same transform as localPlayer. 1 Answer
i just can't seem to figure out how to make a voting system, using SyncVar hooks and commands 0 Answers
How can I make a simple Lobby scene, while staying in the same scene all the time? 0 Answers