- Home /
Adding children to player during runtime in a multiplayer game with NetworkTransformChild Component
I'm trying to make a Snake 3D Multiplayer Game. The player object is called snake and consists of spheres which are child objects. When a bodypart is added during runtime it's not visible for other players even though I'm adding a NetworkTransformChild Component for each new child of the player. Here is the code: //add the new part to the list this.gameObject.SetActive (false); NetworkTransformChild child = this.gameObject.AddComponent<NetworkTransformChild> (); child.target = newPart; this.gameObject.SetActive (true); bodyParts.Add(child.target);
Can anyone help?
Your answer
Follow this Question
Related Questions
Unity networking tutorial? 6 Answers
Animation & sound over network 1 Answer
Syncing terrain over Network 0 Answers
Why can't my client attempt to reconnect after being disconnected? 0 Answers