VR Development Framework
v 1.0.0
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
AVR.Core.Attributes.ConditionalHideInInspector.ConditionalHideInInspector ( string  hideConditionPropertyName,
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.

Definition at line 142 of file AVR_Attributes.cs.

143  {
144  this.hideConditionPropertyName = hideConditionPropertyName;
145  this.invertCondition = invertCondition;
146  this.ctype = compareType.BIGGEREQUAL;
147  compareValue = 1.0f;
148  }