# TryGetField(string, out SearchField)

> Returns an item field if available.

## Definition

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

## TryGetField(string, SearchField)

```csharp
public bool TryGetField(string name, out SearchField field)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Field name.**** (\[SearchField]\(/engine/6000.6/script-reference/unityeditor/search/searchfield)): Copy of the field found.

### Returns

| Type                                                          | Description                                      |
| ------------------------------------------------------------- | ------------------------------------------------ |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | Returns true if the requested field name exists. |
