- Home /
Does Network.Instantiate, instantiate to others players current level?
I'm willing when a player enters a certain level (Application.loadlevel(2)), his character (a Prefab) instantiates to the battlefield, where other players exist. I use a different scene for my games main menu, so players join the game, create server and blah blah in the main menu scene, but as they join the game, Network.Instantiate, instantiate his character to the other's players main menu scene, and in the scene they enters after too, instantiate twice!!
Answer by Bunny83 · Mar 31, 2014 at 11:32 PM
Of course it would. That's why you should trigger the level load via buffered RPC from the server. That way the level gets loaded before anything other happens on a connecting client. Network.Instantiate uses a buffered RPC behind the scenes. The order in which RPCs are executed is always the same order in which they were called.
See the docs for an example:
https://docs.unity3d.com/Documentation/Components/net-NetworkLevelLoad.html
Your answer
Follow this Question
Related Questions
Unity networking tutorial? 6 Answers
UNET Health isn't syncing 1 Answer
Unity networking game keeps crashing 0 Answers
How do you hide the Network HUD GUI? 1 Answer
Multiplayer desynchronize when grabbing an object by code. 0 Answers