Photon Fusion 2.0.0

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

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

Inherits DecoratingPropertyAttribute.

Inherited by DrawIfAttribute, ErrorIfAttribute, and WarnIfAttribute.

Public Attributes

double _doubleValue
 
bool _isDouble
 
long _longValue
 
CompareOperator Compare
 
string ConditionMember
 
bool ErrorOnConditionMemberNotFound = true
 

Protected Member Functions

 DoIfAttributeBase (string propertyPath, double compareToValue, CompareOperator compare)
 
 DoIfAttributeBase (string propertyPath, long compareToValue, CompareOperator compare)
 

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. Null = 0, False = 0, True = 1, Unity Object = InstanceId