Search Unity

how to make rotation of object update in server/host

Discussion in 'Multiplayer' started by FishFace, Aug 28, 2021.

  1. FishFace

    FishFace

    Joined:
    Apr 20, 2011
    Posts:
    99
    Hi,

    I have a host/server and 1 client running.

    I have an object that I rotate with the mouse. I registered the object with the network manager and added a network identity and network transform component to it.

    When I rotate the object in the server/host the rotation gets synced over to the client. But how can I sync the rotation from the client to the server/host when I rotate the object in the client?

    I tried using [command] for telling the server to update the rotation but it did not work...

    Any help appreciated!