Photon Fusion 2.0.0

Public Member Functions | Properties | List of all members
DisplayAsEnumAttribute 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 DrawerPropertyAttribute.

Public Member Functions

 DisplayAsEnumAttribute (string enumTypeMemberName)
 
 DisplayAsEnumAttribute (Type enumType)
 

Properties

Type EnumType [get]
 
string EnumTypeMemberName [get]
 

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.