Search Unity

Question How to replicate value changed by client to other nodes?

Discussion in 'Netcode for GameObjects' started by gjj2828, Nov 11, 2021.

  1. gjj2828

    gjj2828

    Joined:
    Feb 27, 2014
    Posts:
    2
    Before the client can write to NetworkVariables if the write permission is set properly. But now only the server can write to NetworkVariables, then I want to know how to replicate value changed by client to other nodes?Use ServerRpc and let the server to replicate the changed value?Or is there a proper way to achive that?
     
  2. Jos-Yule

    Jos-Yule

    Joined:
    Sep 17, 2012
    Posts:
    292
    @gjj2828 Yep, that is a pretty standard way of doing it.
     
  3. gjj2828

    gjj2828

    Joined:
    Feb 27, 2014
    Posts:
    2
    Thank you for your reply.