Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetAssetPath(in SearchItem)

Returns the asset path of a search item if any.
Read time 1 minuteLast updated 10 days ago

Definition

GetAssetPath(SearchItem)

public static string GetAssetPath(in SearchItem item)

Parameters

Search item.

Returns

Type

Description

stringAsset path of the item or null if none can be found.

Remarks

The returned asset path depends on the SearchProvider of the item.