Version: 2022.3

PackageInfo.FindForAssetPath

切换到手册
public static PackageInfo FindForAssetPath (string assetPath);

参数

assetPath The file path of the asset.

返回

PackageInfo The PackageInfo instance describing the package, or null if the asset is not in a package.

描述

获取有关包含资源且基于该资源的路径的包的信息。