# SearchValue

> SearchValue is used to extend a QueryEngine with custom type parsers and filter operators to search results by value.

## Definition

* **Type:** Struct
* **Namespace:** [UnityEditor.Search](/engine/6000.5/script-reference/unityeditor/search.md)
* **Assembly:** UnityEditor

```csharp
public readonly struct SearchValue
```

## Remarks

A [SearchValue](/engine/6000.5/script-reference/unityeditor/search/searchvalue.md) is a structure that can hold a value of any type defined in [SearchValue.ValueType](/engine/6000.5/script-reference/unityeditor/search/searchvalue/valuetype.md). You can use this structure to add filtering capabilities to any [QueryEngine](/engine/6000.5/script-reference/unityeditor/search/queryengine.md) for all the types supported in [SearchValue.ValueType](/engine/6000.5/script-reference/unityeditor/search/searchvalue/valuetype.md). See [SearchValue.SetupEngine](/engine/6000.5/script-reference/unityeditor/search/searchvalue/setupengine.md) for more details.

## Fields

| Value                                                                                        | Description                                      |
| -------------------------------------------------------------------------------------------- | ------------------------------------------------ |
| [floatNumber](/engine/6000.5/script-reference/unityeditor/search/searchvalue/floatnumber.md) | Number value.                                    |
| [text](/engine/6000.5/script-reference/unityeditor/search/searchvalue/text.md)               | Text representation of the value.                |
| [type](/engine/6000.5/script-reference/unityeditor/search/searchvalue/type.md)               | Indicates the concrete type of the search value. |

## Static Fields

| Value                                                                                | Description                        |
| ------------------------------------------------------------------------------------ | ---------------------------------- |
| [invalid](/engine/6000.5/script-reference/unityeditor/search/searchvalue/invalid.md) | Represent an invalid search value. |

## Properties

| Property                                                                             | Description                             |
| ------------------------------------------------------------------------------------ | --------------------------------------- |
| [boolean](/engine/6000.5/script-reference/unityeditor/search/searchvalue/boolean.md) | Boolean value.                          |
| [valid](/engine/6000.5/script-reference/unityeditor/search/searchvalue/valid.md)     | Indicates if the search value is valid. |

## Static Methods

| Method                                                                                       | Description                                                                                                                                                                               |
| -------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [SetupEngine](/engine/6000.5/script-reference/unityeditor/search/searchvalue/setupengine.md) | Extend a [QueryEngine](/engine/6000.5/script-reference/unityeditor/search/queryengine.md) to work with [SearchValues](/engine/6000.5/script-reference/unityeditor/search/searchvalue.md). |

## Enums

| Enum                                                                                                 | Description                   |
| ---------------------------------------------------------------------------------------------------- | ----------------------------- |
| [SearchValue.ValueType](/engine/6000.5/script-reference/unityeditor/search/searchvalue/valuetype.md) | Search value supported types. |
