- Home /
ViewIds being different on the other client.
Hello, i am having some trouble with the Unity networking.
I at the moment have no objects with a network view attached (i have removed all others for now to solve this problem), only the Players that get instantiated.
My problem is when a client joins the server, somehow the view ids are completely different for the 2 players in the world, on the server it could be 3 and 4, but on the other client its 52 and 53.
To create the players i just use Network.Instantiate after the server/ client is connected.(To be clear, the server creates its own player, and the clients create their own player) I do not use any RPC to do this. I always thought Network.Instantiate made sure that the networkview on said object created was correctly allocated.
The line i use:
OurPlayer = (GameObject)Network.Instantiate(Resources.Load("MultiplayerPrefabs/First Person Character"), SpawnPosition, Quaternion.identity, 0);
Does anyone know what i can do to solve this?
Your answer
Follow this Question
Related Questions
Network.Instantiate after loading level? 1 Answer
Network.Instantiate dont instantiate object 0 Answers
Network.instantiate only works for Server to client 0 Answers
Having problems with Network.Instantiate 1 Answer
Network rigidbody synchronize 0 Answers