Version: Unity 6 Preview (6000.0)
LanguageEnglish
  • C#

PackageInfo.FindForAssetPath

Switch to Manual

Declaration

public static PackageInfo FindForAssetPath(string assetPath);

Parameters

assetPath The file path of the asset.

Returns

PackageInfo The PackageInfo instance 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.