- Home /
Question by
sofuscraft · Mar 31, 2021 at 09:44 AM ·
networkinginstantiatephotonparentpun
How do I instantiate and set the parent of a Gameobject using Photon?
Hey everyone! I'm trying to instantiate a Gameobject using Photon, and then parent it to the player that instantiated the object. However, when I try to do this, the object that got instantiated only gets parented to the player for a split second and then it becomes a child of the scene. I read that you have to call an RPC instead of Instantiating it directly, but you can't set parents inside of RPCs, so how would I go about doing this, because I honestly have no idea. Any help is appreciated.
Here are my scripts so far:
Comment