Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    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,062