This version of Unity is unsupported.

PackageInfo.FindForAssembly

Switch to Manual

Declaration

public static PackageInfo FindForAssembly(Compilation.Assembly assembly);

Parameters

assembly The assembly.

Returns

PackageInfo The PackageInfo instance describing the package, or null if the assembly or its assembly definition is not in a package.

Description

Retrieves information about the package containing an assembly, or the assembly definition used to build that assembly.