# GetName()

> Returns the formatted name of the query depending on its source.

## Definition

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

```csharp
string GetName()
```

### Returns

| Type                                                           | Description                  |
| -------------------------------------------------------------- | ---------------------------- |
| [string](https://learn.microsoft.com/dotnet/api/system.string) | Formatted name of the query. |
