GetAssetPath(in SearchItem)
Returns the asset path of a search item if any.
Read time 1 minuteLast updated 10 days ago
Definition
- Type: Method
- Namespace: UnityEditor.Search
- Assembly: UnityEditor
GetAssetPath(SearchItem)
public static string GetAssetPath(in SearchItem item)
Parameters
Search item.
Returns
Type | Description |
|---|---|
| string | Asset path of the item or null if none can be found. |
Remarks
The returned asset path depends on the SearchProvider of the item.