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

Attribute to indicate that a field should be hidden when another field has a value of zero. More...

Inheritance diagram for PlatformerPro.DontShowWhenZeroAttribute:

Public Member Functions

 DontShowWhenZeroAttribute (string otherProperty)
 Initializes a new instance of the PlatformerPro.DontShowWhenZeroAttribute class. More...
 
 DontShowWhenZeroAttribute (string otherProperty, bool showWhenZero)
 Initializes a new instance of the PlatformerPro.DontShowWhenZeroAttribute class. More...
 

Public Attributes

string otherProperty
 Name of the other property. More...
 
bool showWhenZero
 If true this property will be shown when other property is zero. More...
 

Detailed Description

Attribute to indicate that a field should be hidden when another field has a value of zero.

Constructor & Destructor Documentation

◆ DontShowWhenZeroAttribute() [1/2]

PlatformerPro.DontShowWhenZeroAttribute.DontShowWhenZeroAttribute ( string  otherProperty)

Initializes a new instance of the PlatformerPro.DontShowWhenZeroAttribute class.

Parameters
otherPropertyOther property.

◆ DontShowWhenZeroAttribute() [2/2]

PlatformerPro.DontShowWhenZeroAttribute.DontShowWhenZeroAttribute ( string  otherProperty,
bool  showWhenZero 
)

Initializes a new instance of the PlatformerPro.DontShowWhenZeroAttribute class.

Parameters
otherPropertyOther property.
showWhenZeroIf set to true show when zero.

Member Data Documentation

◆ otherProperty

string PlatformerPro.DontShowWhenZeroAttribute.otherProperty

Name of the other property.

◆ showWhenZero

bool PlatformerPro.DontShowWhenZeroAttribute.showWhenZero

If true this property will be shown when other property is zero.


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