ConditionalHideAttribute Constructor
Constructor in ConditionalHideAttribute
Declaration
public ConditionalHideAttribute(string conditionalField)
Description
Hides the field when the conditional field is true.
Parameters
conditionalField | The name of the conditional field. |
Overload
Declaration
public ConditionalHideAttribute(string conditionalField, int enumValue, bool flags = false)
Description
Hides the field when the conditional field is set to the specified enum value (this assumes the conditional field is an enum).
Parameters
conditionalField | The name of the conditional field. |
enumValue | The enum value to check for. |
flags | Treats the enum as a bit field. |
Overload
Declaration
public ConditionalHideAttribute(string conditionalField, float sliderMinValue, float sliderMaxValue)
Description
Hides the field when the conditional field is true. Draws the field as a slider.
Parameters
conditionalField | The name of the conditional field. |
sliderMinValue | The minimum value of the slider. |
sliderMaxValue | The maximum value of the slider. |