Photon Quantum 3.0.0

Public Attributes | Protected Member Functions | List of all members
Quantum.DoIfAttributeBase Class Reference

Editor attribute for selective editor rendering. Condition member can be a property, field or method (with a return value). More...

Inheritance diagram for Quantum.DoIfAttributeBase:
Quantum.DecoratingPropertyAttribute Quantum.PropertyAttribute Quantum.DrawIfAttribute Quantum.ErrorIfAttribute Quantum.WarnIfAttribute

Public Attributes

double _doubleValue
 The double value to compare against. More...
 
bool _isDouble
 Is the value to compare against a double? More...
 
long _longValue
 The long value to compare against. More...
 
CompareOperator Compare
 The comparison operator to use. More...
 
string ConditionMember
 Condition member to evaluate. More...
 
bool ErrorOnConditionMemberNotFound = true
 If true, an error will be thrown if the condition member is not found. More...
 

Protected Member Functions

 DoIfAttributeBase (string conditionMember, bool compareToValue, CompareOperator compare)
 Initializes a new instance with a boolean value to compare against. More...
 
 DoIfAttributeBase (string conditionMember, double compareToValue, CompareOperator compare)
 Initializes a new instance with a double value to compare against. More...
 
 DoIfAttributeBase (string conditionMember, long compareToValue, CompareOperator compare)
 Initializes a new instance with a long value to compare against. More...
 
- Protected Member Functions inherited from Quantum.DecoratingPropertyAttribute
 DecoratingPropertyAttribute ()
 Initializes a new instance with the default order. More...
 
 DecoratingPropertyAttribute (int order)
 Initializes a new instance with the specified order. More...
 

Additional Inherited Members

- Static Public Attributes inherited from Quantum.DecoratingPropertyAttribute
const int DefaultOrder = -10000
 The default order of the attribute. More...
 

Detailed Description

Editor attribute for selective editor rendering. Condition member can be a property, field or method (with a return value).

Value of condition method is converted to a long or a double. null = 0, false = 0, true = 1, Unity Object = InstanceId

Constructor & Destructor Documentation

◆ DoIfAttributeBase() [1/3]

Quantum.DoIfAttributeBase.DoIfAttributeBase ( string  conditionMember,
double  compareToValue,
CompareOperator  compare 
)
inlineprotected

Initializes a new instance with a double value to compare against.

Parameters
conditionMember
compareToValue
compare

◆ DoIfAttributeBase() [2/3]

Quantum.DoIfAttributeBase.DoIfAttributeBase ( string  conditionMember,
long  compareToValue,
CompareOperator  compare 
)
inlineprotected

Initializes a new instance with a long value to compare against.

Parameters
conditionMember
compareToValue
compare

◆ DoIfAttributeBase() [3/3]

Quantum.DoIfAttributeBase.DoIfAttributeBase ( string  conditionMember,
bool  compareToValue,
CompareOperator  compare 
)
inlineprotected

Initializes a new instance with a boolean value to compare against.

Parameters
conditionMember
compareToValue
compare

Member Data Documentation

◆ _doubleValue

double Quantum.DoIfAttributeBase._doubleValue

The double value to compare against.

◆ _isDouble

bool Quantum.DoIfAttributeBase._isDouble

Is the value to compare against a double?

◆ _longValue

long Quantum.DoIfAttributeBase._longValue

The long value to compare against.

◆ Compare

CompareOperator Quantum.DoIfAttributeBase.Compare

The comparison operator to use.

◆ ConditionMember

string Quantum.DoIfAttributeBase.ConditionMember

Condition member to evaluate.

◆ ErrorOnConditionMemberNotFound

bool Quantum.DoIfAttributeBase.ErrorOnConditionMemberNotFound = true

If true, an error will be thrown if the condition member is not found.