Method SettingsFloatField
SettingsFloatField(GUIContent, UserSetting<float>, string)
A float field that implements search filtering and context menu reset.
Declaration
public static float SettingsFloatField(GUIContent label, UserSetting<float> value, string searchContext)
Parameters
Type | Name | Description |
---|---|---|
GUIContent | label | Label in front of the value field. |
UserSetting<float> | value | The value to edit. |
string | searchContext | A string representing the current search query. Empty or null strings are to be treated as matching any value. |
Returns
Type | Description |
---|---|
float | The value that has been set by the user. |
SettingsFloatField(string, UserSetting<float>, string)
A float field that implements search filtering and context menu reset.
Declaration
public static float SettingsFloatField(string label, UserSetting<float> value, string searchContext)
Parameters
Type | Name | Description |
---|---|---|
string | label | Label in front of the value field. |
UserSetting<float> | value | The value to edit. |
string | searchContext | A string representing the current search query. Empty or null strings are to be treated as matching any value. |
Returns
Type | Description |
---|---|
float | The value that has been set by the user. |