Method GetInline
GetInline<T>(SerializedProperty)
Get the value of a SerializedProperty.
This function will be inlined by the compiler. Caution: The case of Enum is not handled here.
Declaration
public static T GetInline<T>(this SerializedProperty serializedProperty) where T : struct
Parameters
Type | Name | Description |
---|---|---|
SerializedProperty | serializedProperty | The property to get. |
Returns
Type | Description |
---|---|
T | The value of the property. |
Type Parameters
Name | Description |
---|---|
T | The type of the value to get. It is expected to be a supported type by the SerializedProperty. |