Method SetFloat
SetFloat(string, float, string)
Stores the float value in the Editor preferences for the calling property.
Declaration
public static void SetFloat(string typeName, float value, string propertyName = null)
Parameters
Type | Name | Description |
---|---|---|
string | typeName | The name of the type that declares the property. |
float | value | Value to set in Editor preferences. |
string | propertyName | Name of calling property. When invoking this function from a property getter or setter, you can leave this parameter blank and it will be filled in by the property name. |