ConditionalHideAttribute
Class in Zigurous.Architecture
Inherits from ConditionalAttribute
Declaration
[AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)]
public sealed class ConditionalHideAttribute : ConditionalAttribute
Description
An attribute that hides a field in the editor based on the state of another field.
Constructors
ConditionalHideAttribute | Hides the field when the conditional field is true. |
Inherited
Properties
propertyDrawer | The type of property drawer to use to draw the field. |
conditionalField | The field being used to determine if the condition is met. |
show | Whether to show or hide the field when the condition is met. |
enumValue | The enum value to use to determine if the condition is met (only applicable if the conditional field is an enum). |
enumFlags | Whether the enum should be treated as a bit field (only applicable if the conditional field is an enum). |
sliderMinValue | The minimum value of the slider (only applicable for Slider property drawers). |
sliderMaxValue | The maximum value of the slider (only applicable for Slider property drawers). |