ConditionalHideAttribute Constructor


Declaration

public ConditionalHideAttribute(string conditionalField)

Description

Hides the field when the conditional field is true.

Parameters

conditionalFieldThe 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

conditionalFieldThe name of the conditional field.
enumValueThe enum value to check for.
flagsTreats 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

conditionalFieldThe name of the conditional field.
sliderMinValueThe minimum value of the slider.
sliderMaxValueThe maximum value of the slider.