#Problem with switching a scenes

1 messages · Page 1 of 1 (latest)

storm umbra
#

So I have a SceneA that has network manager and it is the entry point of the game. It has a trigger that loads SceneB, and SceneB has a trigger that returns to SceneA
when I return to SceneA no prefabs are spawned, and also player is removed from the scene, why is that?

console :

Multiple NetworkManagers detected in the scene. Only one NetworkManager can exist at a time. The duplicate NetworkManager will be destroyed.
manic vessel
storm umbra
#

scenemanager.loadscene

manic vessel
#

I would recommend using the implementations done by mirror

storm umbra
#

i just shut down Unity, but i thought that online and offline scenes are for player whos AFK lol

#

wait, i dont want all the clients switch the scene, just the localPlayer

i have like open world and place where player can change the clothes

#

clothes scene is only visible to the current player

manic vessel
# storm umbra i just shut down Unity, but i thought that online and offline scenes are for pla...

Nope😄 Network online network offline. If server goes down all clients will switch to the offline scene(most cases the main menu)

Check https://mirror-networking.gitbook.io/docs/manual/examples and look for your needed example. It will probably be additive levels but I am always unsure. Check the examples that come with mirror (look at the scripts and setup). You probably also have to take a look at Interest Management

storm umbra
#

and what are the online scenes?

manic vessel
# storm umbra and what are the online scenes?

Depends on what type of game you have and all explained in the examples. Could be a lobby where people first meet before starting or the game directly or just a container if using additive levels(again all explained in the examples)

Basically the scene where the clients will join to

storm umbra
#

ok, ill take a look at examples thx