FindForAssembly(Assembly)
Retrieves information about the package containing an assembly, or the assembly definition used to build that assembly.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: UnityEditor.PackageManager
- Assembly: UnityEditor
public static PackageInfo FindForAssembly(Assembly assembly)
Parameters
The assembly.
Returns
Type | Description |
|---|---|
| PackageInfo | The PackageInfo instance describing the package, or null if the assembly or its assembly definition is not in a package. |