#Unloading Scenes not working correctly?

17 messages · Page 1 of 1 (latest)

unique forum
#

Currently, this just unloads my gameobjects from the scene, but I am still looking at the scene after this is called

unique forum
#

💀

radiant yacht
#

What's the error?

#

If you unload correctly, the scene will be gone from your hierarchy, unless it encountered an error and stopped the unloading process

unique forum
#

I guess I need to load back into the lobby? The Lobby scene is still in the hierarchy, so do I need to make it the main scene then?

radiant yacht
#

Yeah

#

Set it as the main scene

unique forum
#

Now that I think about it, I'm wondering if there is a public function I can call within the Lobby and World code that specifically does all of this? Surely if it is intended to be used to load your game, it should also have intentions to reload back into the lobby once it is over?

radiant yacht
#

loading of scenes uses scene load

radiant yacht
unique forum
#

I mean within the Lobby and World example

radiant yacht
#

well, changing scene still uses scene load

#

not sure what u mean within Lobby and world. It still uses scene load to change scene

unique forum
#

It's got instructions to replace it's test game scene with your own so you can boot into your game easily. I'm wondering if there's an easy way to exit your game and go back to lobby already built in

#

Like a public API already coded that just needs to be called

#

Ah ok I found it