Search Unity

  1. The 2022.1 beta is now available for testing. To find out what's new, have a look at our 2022.1 beta blog post.
    Dismiss Notice

Help Wanted 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:
    288
    @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.
     
unityunity