How do I access changes to the values of the networkbehaviour component properties?

I will spawn a player with a custom NetworkBehaviour component, in which I need to change the values on the client and pass it to everyone else. But it turns out that I can only change the values on the server (the server is running in dedicated server mode). I pass InputAuthority to the player during spawn. How can I allow the player to change the values of the NetworkBehaviour component?

Answers

  • Have the client send an RPC to the server and then have the server change the Networked properties in that RPC function.