![]() |
Platformer Pro
2.3.2
A platform game kit for Unity.
|
Attribute to indicate that a field should be shown or hidden when another enum field has a specific value. More...
Public Member Functions | |
ShowWhenEnumValueAttribute (string otherProperty, int[] enumValues) | |
Initializes a new instance of the PlatformerPro.DontShowWhenAttribute class. More... | |
ShowWhenEnumValueAttribute (string otherProperty, int[] enumValues, bool showWhenNotMatched) | |
Initializes a new instance of the PlatformerPro.DontShowWhenAttribute class. More... | |
Public Attributes | |
string | otherProperty |
Name of the other property. More... | |
int[] | enumValues |
Allowable values fro the enum. Enum values must be converted ot ints. More... | |
bool | showWhenNotMatched |
If true this property will be shown when other the value is anything other than the enum values. More... | |
Attribute to indicate that a field should be shown or hidden when another enum field has a specific value.
PlatformerPro.ShowWhenEnumValueAttribute.ShowWhenEnumValueAttribute | ( | string | otherProperty, |
int[] | enumValues | ||
) |
Initializes a new instance of the PlatformerPro.DontShowWhenAttribute class.
otherProperty | Other property. |
enumValues | Required enum values |
PlatformerPro.ShowWhenEnumValueAttribute.ShowWhenEnumValueAttribute | ( | string | otherProperty, |
int[] | enumValues, | ||
bool | showWhenNotMatched | ||
) |
Initializes a new instance of the PlatformerPro.DontShowWhenAttribute class.
otherProperty | Other property. |
enumValues | Required enum values |
showWhenNotMacthed | If set to true show when not mathched. |
int [] PlatformerPro.ShowWhenEnumValueAttribute.enumValues |
Allowable values fro the enum. Enum values must be converted ot ints.
string PlatformerPro.ShowWhenEnumValueAttribute.otherProperty |
Name of the other property.
bool PlatformerPro.ShowWhenEnumValueAttribute.showWhenNotMatched |
If true this property will be shown when other the value is anything other than the enum values.