- Home /
How to make the child of a spawned player gameobject to be private to the player using Photon Unity Networking implementing Multiplayer Game on Unity
Using the photon Unity Networking, I am spawning the player game object in a multiplayer unity game. This spawned player game objects are cloned to all devices playing that game and joined same room.
My question is that how to make a particular game object which is a child of the spawned player game object completely private to the player which spawns that child game object. Nobody else can view it.
Answer by ChristianSimon · Jul 17, 2018 at 02:19 PM
Hi,
you would have to instantiate this object locally by using Unity's Instantiate function. After the object is created, you can re-parent it to another GameObject. Any GameObject that doesn't get created by using PhotonNetwork.Instantiate is not synchronized across the network (and not even instantiated on the other clients) by default.
Your answer
