Tag Archives: Unity

Conditional Attributes

      1 Comment on Conditional Attributes

Some of our public variables logically depends on the value of others. When some variable is unchecked (false), other variable has no meaning. For example: Player class containing canJump boolean with jumpHeight float. We don’t have to display jumpHeight when Player canJump is false etc… Even if these variables can… Read more »