Parenting an instantiation (PUN2)
Options
Is there a way to parent an instantiated object? would i need to call it as a gameobject and then parent it after instantiation? if so instantiating things as a game object doesn't really work, by what i mean is this:
photonObject = PhotonNetworking.Instantiate(objectname, position, rotation, 0) as GameObject);
(code here to apply to parent object)
and instantiates it but at its regular location instead of on the parented object.
thanks for any help
photonObject = PhotonNetworking.Instantiate(objectname, position, rotation, 0) as GameObject);
(code here to apply to parent object)
and instantiates it but at its regular location instead of on the parented object.
thanks for any help
0