Method GetEnumValue
GetEnumValue<T>(SerializedProperty)
Helper to get an enum value from a SerializedProperty. This handle case where index do not correspond to enum value.
Declaration
public static T GetEnumValue<T>(this SerializedProperty property) where T : Enum
Parameters
Type | Name | Description |
---|---|---|
SerializedProperty | property |
Returns
Type | Description |
---|---|
T | The Enum value |
Type Parameters
Name | Description |
---|---|
T | A valid Enum |