ObjectNet provides the facility to keep variables synchronized over the network.


Those variables are automatically synchronized over the network from Active to Passive instances.


To implement Network Variables, the script must be inherited from NetworkBehaviour, and can be used in two ways.




Network variables can synchronize the following types:



       int
      uint
      long
      ulong
      short
      ushort
      float
      double
      byte
      byte[]
      string
      char
      char[]
      Vector3
      Color
      bool