Platformer Pro  2.3.2
A platform game kit for Unity.
PlatformerPro.ShowWhenEnumValueAttribute Class Reference

Attribute to indicate that a field should be shown or hidden when another enum field has a specific value. More...

Inheritance diagram for PlatformerPro.ShowWhenEnumValueAttribute:

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...
 

Detailed Description

Attribute to indicate that a field should be shown or hidden when another enum field has a specific value.

Constructor & Destructor Documentation

◆ ShowWhenEnumValueAttribute() [1/2]

PlatformerPro.ShowWhenEnumValueAttribute.ShowWhenEnumValueAttribute ( string  otherProperty,
int[]  enumValues 
)

Initializes a new instance of the PlatformerPro.DontShowWhenAttribute class.

Parameters
otherPropertyOther property.
enumValuesRequired enum values

◆ ShowWhenEnumValueAttribute() [2/2]

PlatformerPro.ShowWhenEnumValueAttribute.ShowWhenEnumValueAttribute ( string  otherProperty,
int[]  enumValues,
bool  showWhenNotMatched 
)

Initializes a new instance of the PlatformerPro.DontShowWhenAttribute class.

Parameters
otherPropertyOther property.
enumValuesRequired enum values
showWhenNotMacthedIf set to true show when not mathched.

Member Data Documentation

◆ enumValues

int [] PlatformerPro.ShowWhenEnumValueAttribute.enumValues

Allowable values fro the enum. Enum values must be converted ot ints.

◆ otherProperty

string PlatformerPro.ShowWhenEnumValueAttribute.otherProperty

Name of the other property.

◆ showWhenNotMatched

bool PlatformerPro.ShowWhenEnumValueAttribute.showWhenNotMatched

If true this property will be shown when other the value is anything other than the enum values.


The documentation for this class was generated from the following file: