# GetAssetThumbnailFromPath

> Returns a thumbnail texture to be used in the search view.

## Definition

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

## GetAssetThumbnailFromPath(SearchContext, string)

Returns a thumbnail texture to be used in the search view.

```csharp
public static Texture2D GetAssetThumbnailFromPath(SearchContext context, string path)
```

### Parameters

**** (\[SearchContext]\(/engine/6000.5/script-reference/unityeditor/search/searchcontext)): **** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Asset path.

### Returns

| Type                                                                  | Description        |
| --------------------------------------------------------------------- | ------------------ |
| [Texture2D](/engine/6000.5/script-reference/unityengine/texture2d.md) | Thumbnail texture. |

### Remarks

See [SearchProvider.fetchThumbnail](/engine/6000.5/script-reference/unityeditor/search/searchprovider/fetchthumbnail.md).

## GetAssetThumbnailFromPath(string)

Returns a thumbnail texture to be used in the search view.

```csharp
public static Texture2D GetAssetThumbnailFromPath(string path)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Asset path.

### Returns

| Type                                                                  | Description        |
| --------------------------------------------------------------------- | ------------------ |
| [Texture2D](/engine/6000.5/script-reference/unityengine/texture2d.md) | Thumbnail texture. |

### Remarks

See [SearchProvider.fetchThumbnail](/engine/6000.5/script-reference/unityeditor/search/searchprovider/fetchthumbnail.md).
