Jump to content
This site uses cookies! Learn More

This site uses cookies!

armedunity.com uses cookies to improve user experience.

By continuing to use this site, you agree to allow us to store cookies on your computer.

  • 0
Sign in to follow this  
aidendudewow

Setting the Parent of a Photon Instantiated Object

Question

I'm trying to make it so that a Photon Instantiated object becomes a child of a transform. I know how to set the parent locally, but over the network the object just stays in place. Here's what I have so far-

Please login or register to see this code.

Sorry if this is way out of the ball park of what I need to do. I didn't think I'd need any remote calls or anything too fancy

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

You need to send an RPC to everyone to set the parent of the newly instantiated object by passing in the photonView ID into the parameter of the RPC. On the other clients receiving the RPC, find the GameObject with the photonView ID, and set the parent there.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...