Method GetEnumName
GetEnumName<T>(SerializedProperty)
Helper to get an enum name from a SerializedProperty
Declaration
public static string GetEnumName<T>(this SerializedProperty property) where T : Enum
Parameters
Type | Name | Description |
---|---|---|
SerializedProperty | property |
Returns
Type | Description |
---|---|
string | The string containing the name of the enum |
Type Parameters
Name | Description |
---|---|
T | A valid Enum |