GetThumbnail(SearchContext, bool)
Gets the search item thumbnail if available, otherwise the thumbnail is fetched at this time. The thumbnail is usually used in list view compared to the grid view.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: UnityEditor.Search
- Assembly: UnityEditor
public Texture2D GetThumbnail(SearchContext context, bool cacheThumbnail = false)
Parameters
Search context used to fetch the search item thumbnail.
Indicates if the search item thumbnail should be cached for next time.
Returns
Type | Description |
|---|---|
| Texture2D | Returns the search item 2D texture. |