Search Unity

Question Netcode: Synchronizing pos/rot of 2 differant objects

Discussion in 'Multiplayer' started by slimaalej, Sep 19, 2023.

  1. slimaalej


    Sep 19, 2023
    Hello everyone,
    am quite the beginner in c# and unity in general but i am working on a project where i thougth netcode will be quite usefull.
    My objective is on paper extreamly simple: 2 separate unity project that on start each will launch as host and client, where on the host there are 3 objects( cube 1 2 3) and on the client i have 3 figures. my goal is when i move cube 1, figure 1 moves the same way and thats about it.
    Problem here is that i couldn't figure out how to synch two differant objects. I Understands it's quite simple if it was the same object but that is not what i want.
    I needed it to be on two differant unity projects.
    I would apriciate it if someone has a solution for me ^^'
    ps: if you can provide a solution for automaticly starting a project as either host or client would be apriciated too