PackageInfo.FindForAssetPath
public static PackageInfo FindForAssetPath(string assetPath);
Parameters
| assetPath | The file path of the Asset. |
Returns
PackageInfo The PackageInfo object describing the package, or null if the Asset is not in a package.
Description 描述
Retrieves information about the package containing an asset based on the path of that asset.