- Home /
Transform.parent not set on clients UNET
I have been trying hard to find a solution to my spawning problem where the parent of the spawned object is not set on clients, only host.
This is what i do using UNET
Instantiate prefab
set parent of instantiated object
networkserver.spawnwithclientauthority
All is done with a [Command] method
The prefab is registered as a spawnable object, and it has a NetworkIdentity component at its root.
It is instantiated, but on the clients the object is not a child. On the host the instantiated object is a child and follows the parent object.
Your answer
Follow this Question
Related Questions
NetworkServer.Destroy(GameObject) disables Client objects instead of destroying them 1 Answer
Command cannot pass GameObject parameter from remote client to server. 6 Answers
Change player object - UNET 1 Answer
Why is the command function not being called on the client? 0 Answers
New Unity 5.1 Networking :- Spawning is not synchronized!!!! 2 Answers