VR Development Framework
v 1.0.0
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
AVR.Core.Attributes.ConditionalHideInInspector.ConditionalHideInInspector ( string  hideConditionPropertyName,
float  compareValue,
compareType  ctype = compareType.EQUAL,
bool  invertCondition = false 
)
inline

Hides a field in the Inspector if a given condition is true.

Parameters
hideConditionPropertyNameThe first parameter is always the name of the field that represents the condition. The name is case-sensitive.
invertConditionWill invert the given condition. Hence why in the example above, tracking = false hides the type field.
compareValueOptionally, one can compare the given field with some given value. The type of comparison is determined by:
ctypeType of comparison performed if a compareValue is provided. Examples:

Definition at line 157 of file AVR_Attributes.cs.

158  {
159  this.hideConditionPropertyName = hideConditionPropertyName;
160  this.invertCondition = invertCondition;
161  this.compareValue = compareValue;
162  this.ctype = ctype;
163  }