Character Controller Pro 1.4.11
A 2D/3D character controller asset for Unity.
Lightbug.Utilities.ConditionAttribute Class Reference
Inheritance diagram for Lightbug.Utilities.ConditionAttribute:

Public Types

enum  ConditionType {
  IsTrue , IsFalse , IsGreaterThan , IsEqualTo ,
  IsLessThan , IsNotNull , IsNull
}
 
enum  VisibilityType { Hidden , NotEditable }
 

Public Member Functions

 ConditionAttribute (string conditionPropertyName, ConditionType conditionType, VisibilityType visibilityType=VisibilityType.Hidden, float conditionValue=0f)
 This attribute will determine the visibility of the target property based on some other property condition. Use this attribute if the target property depends on some other property inside the class. More...
 
 ConditionAttribute (string[] conditionPropertyNames, ConditionType[] conditionTypes, float[] conditionValues, VisibilityType visibilityType=VisibilityType.Hidden)
 

Public Attributes

string[] conditionPropertyNames
 
ConditionType[] conditionTypes
 
float[] values
 
VisibilityType visibilityType
 

Constructor & Destructor Documentation

◆ ConditionAttribute()

Lightbug.Utilities.ConditionAttribute.ConditionAttribute ( string  conditionPropertyName,
ConditionType  conditionType,
VisibilityType  visibilityType = VisibilityType.Hidden,
float  conditionValue = 0f 
)
inline

This attribute will determine the visibility of the target property based on some other property condition. Use this attribute if the target property depends on some other property inside the class.

Parameters
conditionPropertyNameName of the property used by the condition.
conditionTypeThe condition type.
visibilityTypeThe visibility action to perform if the condition is not met.
conditionValueThe condition argument value.

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