ConditionalAttribute
Class in Zigurous.Architecture
Declaration
[AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)]
public abstract class ConditionalAttribute : PropertyAttribute
Description
An attribute that shows or hides a field in the editor based on a condition.
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). |