# SearchField

> Creates a search field.

## Definition

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

## SearchField(string)

Creates a search field.

```csharp
public SearchField(string name)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Name of the field.

## SearchField(string, Object)

Creates a search field.

```csharp
public SearchField(string name, object value)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Name of the field.**** (\[Object]\(https\://learn.microsoft.com/dotnet/api/system.object)): Value of the field.

## SearchField(string, string, Object)

Creates a search field.

```csharp
public SearchField(string name, string alias, object value)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Name of the field.**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Label used for display.**** (\[Object]\(https\://learn.microsoft.com/dotnet/api/system.object)): Value of the field.
