Photon Fusion 1.1.9

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)
 Base Constructor.
 
 DoIfAttribute (string conditionMemberName, bool compareToValue)
 Base Constructor.
 
 DoIfAttribute (string conditionMemberName, double compareToValue)
 Base Constructor.
 

Public Attributes

DoIfCompareOperator Compare
 
double CompareToValue
 
string ConditionMember
 

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