Method SetInline
SetInline<T>(SerializedProperty, T)
Set 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 void SetInline<T>(this SerializedProperty serializedProperty, T value) where T : struct
Parameters
Type | Name | Description |
---|---|---|
SerializedProperty | serializedProperty | The property to set. |
T | value | The value to set. |
Type Parameters
Name | Description |
---|---|
T | The type of the value to set. It is expected to be a supported type by the SerializedProperty. |