Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Unity 2022.2 is now available as the latest Tech release.
    Dismiss Notice
  3. We are making some changes to the DOTS forums.
    Dismiss Notice
  4. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    Dismiss Notice

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

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

  1. MagicUnit

    MagicUnit

    Joined:
    Sep 24, 2019
    Posts:
    7
    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:
    2,945