# GetValue(string, SearchContext)

> Get the default search item value of a given field.

## Definition

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

```csharp
public object GetValue(string name = null, SearchContext context = null)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Field name. Can be null.**** (\[SearchContext]\(/engine/6000.6/script-reference/unityeditor/search/searchcontext)): Search context if available. Can be null.

### Returns

| Type                                                           | Description        |
| -------------------------------------------------------------- | ------------------ |
| [Object](https://learn.microsoft.com/dotnet/api/system.object) | Search item value. |
