Skip to main content

ConditionAttribute

A class in Alta.Attributes, the global namespace.

Inspector attribute that shows, hides or locks a field depending on a bool member of the same object.

Constructors​

MemberWhat it is
ConditionAttribute(string boolean, ReadOnlyMode trueMode = 2, ReadOnlyMode falseMode = 0)Creates a ConditionAttribute from boolean, trueMode and falseMode.

Properties​

MemberWhat it is
string Boolean { get; private set; }Name of the bool member to check.
ReadOnlyMode FalseMode { get; private set; }How the field is drawn when the bool is false. Default hidden.
ReadOnlyMode TrueMode { get; private set; }How the field is drawn when the bool is true. Default editable.