Photon Fusion 1.1.2

Public Member Functions | Public Attributes | List of all members
DoIfAttribute Class Reference

Fusion 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, and WarnIfAttribute.

Public Member Functions

 DoIfAttribute (string conditionMemberName, double compareToValue)
 Base Constructor. More...
 
 DoIfAttribute (string conditionMemberName, bool compareToValue)
 Base Constructor. More...
 
 DoIfAttribute (string conditionMemberName)
 Base Constructor. More...
 

Public Attributes

string ConditionMember
 
double CompareToValue
 
DoIfCompareOperator Compare
 

Detailed Description

Fusion 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

Constructor & Destructor Documentation

◆ DoIfAttribute() [1/3]

DoIfAttribute ( string  conditionMemberName,
double  compareToValue 
)

Base Constructor.

Parameters
conditionMemberName
compareToValue

◆ DoIfAttribute() [2/3]

DoIfAttribute ( string  conditionMemberName,
bool  compareToValue 
)

Base Constructor.

Parameters
conditionMemberName
compareToValue

◆ DoIfAttribute() [3/3]

DoIfAttribute ( string  conditionMemberName)

Base Constructor.

Parameters
conditionMemberName