Unet: Where or when to spawn Environmental objects (OnStartServer does not work properly)

Hi there,
i just wanted to ask if there is a Method where things like creating the environment normally are.
At the moment i am doing it in the OnStartServer method but when i log out with the host and log back in the objects wont be spawned again. Which method is called when somebody clicks on LAN Host?

ty

When someone hosts a server it runs the OnServerInitialized function, when someone joins a server it runs the OnConnectedToServer function.

I’m confused on what you’re asking, if you’re using a procedural world then try to Network.Instantiate all of your objects OnServerInitialized.

If it’s not procedural and the objects don’t change then you don’t need to spawn them, they’re already in the game.