Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

Resolved Do clients always download network variables?

Discussion in 'Netcode for GameObjects' started by Kentecio0, Dec 4, 2022.

  1. Kentecio0

    Kentecio0

    Joined:
    Jun 9, 2022
    Posts:
    1
    Do clients always download network variables or only when trying to read it?
    Is there a way to stop specific clients from receiving some variables?

    Im new to networking and cant find any info about this.
     
  2. CodeSmile

    CodeSmile

    Joined:
    Apr 10, 2014
    Posts:
    1,910
    NetworkVariables are synchronized to all clients whenever the value changes. You cannot opt out of this behaviour.

    For any asynchroneous data exchange, eg just between client X and the server, use RPC messages.
     
    Kentecio0 likes this.