Method SearchableToggle
SearchableToggle(GUIContent, bool, string)
An toggle field that implements search filtering.
Declaration
public static bool SearchableToggle(GUIContent label, bool value, string searchContext)
Parameters
| Type | Name | Description |
|---|---|---|
| GUIContent | label | Label in front of the value field. |
| bool | 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 |
|---|---|
| bool | The value that has been set by the user. |
SearchableToggle(string, bool, string)
An toggle field that implements search filtering.
Declaration
public static bool SearchableToggle(string label, bool value, string searchContext)
Parameters
| Type | Name | Description |
|---|---|---|
| string | label | Label in front of the value field. |
| bool | 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 |
|---|---|
| bool | The value that has been set by the user. |