Search Unity

SyncVars on subclasses

Discussion in 'Multiplayer' started by n1gth, Jun 21, 2015.

  1. n1gth

    n1gth

    Joined:
    May 6, 2015
    Posts:
    16
    Am I right in thinking it's not possible to put SyncVars at different levels of the class hierarchy?

    A script was working fine with SyncVars in the superclass, but when I added a SyncVar to the subclass the top level ones stopped working.

    Any guidance/advice on using SyncVars with subclasses?
     
  2. seanr

    seanr

    Unity Technologies

    Joined:
    Sep 22, 2014
    Posts:
    669
    it is a bug. will be fixed in a patch release.
     
  3. n1gth

    n1gth

    Joined:
    May 6, 2015
    Posts:
    16
    Thanks for the info!