Photon Fusion 1.1.13

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

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