Photon Fusion 1.1.12

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

Casts an enum or int value in the inspector to specific enum type for rendering of its popup list. Supplying a method name rather than a type allows a property with the type Type to be used to dynamically get the enum type. More...

Inherits PropertyAttribute.

Public Member Functions

 CastEnumAttribute (string getTypeMethodName)
 
 CastEnumAttribute (Type castToType)
 

Public Attributes

Type CastToType
 
string GetTypeMethodName
 

Detailed Description

Casts an enum or int value in the inspector to specific enum type for rendering of its popup list. Supplying a method name rather than a type allows a property with the type Type to be used to dynamically get the enum type.