# GetAssetPath(in SearchItem)

> Returns the asset path of a search item if any.

## Definition

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

## GetAssetPath(SearchItem)

```csharp
public static string GetAssetPath(in SearchItem item)
```

### Parameters

**** (\[SearchItem]\(/engine/6000.5/script-reference/unityeditor/search/searchitem)): Search item.

### Returns

| Type                                                           | Description                                          |
| -------------------------------------------------------------- | ---------------------------------------------------- |
| [string](https://learn.microsoft.com/dotnet/api/system.string) | Asset path of the item or null if none can be found. |

### Remarks

The returned asset path depends on the [SearchProvider](/engine/6000.5/script-reference/unityeditor/search/searchprovider.md) of the item.
