Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Third Party PUN2 add Component(FixedJoint) to Gameobjects and sync to all clients

Discussion in 'Multiplayer' started by EnvisionGames, Nov 23, 2022.

  1. EnvisionGames

    EnvisionGames

    Joined:
    Sep 24, 2019
    Posts:
    12
    Hello, I am trying to add a FixedJoint to a Gameobject and want this FixedJoint to be also created on all other clients. How can I create a Component like a FixedJoint for example on a Gameobject and then create it on all other clients with RPC call? How would the RPC code look like to achieve this? I can’t figure it out, please give me some tips.
     
  2. tobiass

    tobiass

    Joined:
    Apr 7, 2009
    Posts:
    3,079