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.

Unity Multiplayer Dirty bits with sync vars

Discussion in 'Multiplayer' started by bpeake, Jun 19, 2015.

  1. bpeake

    bpeake

    Joined:
    Apr 8, 2013
    Posts:
    22
    While going through the NetworkBehaviour documentation I noticed the field syncVarDirtyBits used for the dirty bits for each sync var. Something that caught my eye was that it is only a single uint. Does this mean that in theory only 32 sync vars can be made in a type, or will the UNetWeaver expand this size as needed? Mostly just curious about the inner workings of it.
     
  2. Carpe-Denius

    Carpe-Denius

    Joined:
    May 17, 2013
    Posts:
    842
  3. seanr

    seanr

    Unity Technologies

    Joined:
    Sep 22, 2014
    Posts:
    669