Parenting To GameObject
Options
Hello,
When I spawn a new player, I have the Gameobject be parented to the GameManager and renamed. So I am testing this in the Editor Play mode and a build Player, and whenever a player is spawned only the editor player is parented and renamed. The build player just has the spawned objects name and not in a hierarchy as I wanted. Is there anything else I need to do?
Thanks,
jrDev
When I spawn a new player, I have the Gameobject be parented to the GameManager and renamed. So I am testing this in the Editor Play mode and a build Player, and whenever a player is spawned only the editor player is parented and renamed. The build player just has the spawned objects name and not in a hierarchy as I wanted. Is there anything else I need to do?
Thanks,
jrDev
0
Comments
-
0
-
Hi,
Parenting is not carried away via network instantiation, you'll need to parent it via code.
https://forum.unity.com/threads/pun-how-to-sync-the-object-hierarchy.384641/
Bye,
Jean0 -
Thanks,jeanfabre said:Hi,
Parenting is not carried away via network instantiation, you'll need to parent it via code.
https://forum.unity.com/threads/pun-how-to-sync-the-object-hierarchy.384641/
Bye,
Jean
I'll read up on it.
jrDev0