用于描述 Unity 包的结构。
对注册表中的包、源代码仓库修订版本、网络中的资源或磁盘上可用包的引用。
assetPath | AssetDatabase 中包的资源路径。 |
author | 包创作者的 AuthorInfo 实例。 |
category | 包的类别。 |
changelogUrl | The custom URL for the changelog for the package. |
datePublished | 包的发布日期和时间。 |
dependencies | 一个 DependencyInfos 数组,其中列出此包直接依赖的所有包。 |
deprecationMessage | Deprecation message for the version that this instance represents. |
description | 包的详细描述。 |
displayName | 包的友好显示名称。 |
documentationUrl | The custom URL for documentation for the package. |
errors | 与包相关的错误。 |
git | 为 Git 包提供详细信息的 GitInfo 实例。 |
isDeprecated | Set to `true` if the package version that this instance represents is deprecated. |
isDirectDependency | 如果包是项目的直接依赖关系。 |
keywords | 与包相关的关键字数组。 |
licensesUrl | The custom URL for the licenses of a package. |
name | 包的唯一名称。 |
packageId | 包的标识符。 |
registry | The registry where the Package Manager might find this package. |
repository | A RepositoryInfo instance containing information the repository that the package is hosted on. |
resolvedDependencies | An array of DependencyInfo instances listing all the packages this package directly or indirectly depends on and the versions they resolved to. |
resolvedPath | 磁盘上项目的本地路径。 |
source | 包内容的来源。 |
type | 包的类型。 |
version | 包的版本。 |
versions | 包含有关包的可用版本信息的 VersionsInfo 实例。 |
FindForAssembly | Retrieves information about the package containing an assembly, or the assembly definition used to build that assembly. |
FindForAssetPath | 获取有关包含资源且基于该资源的路径的包的信息。 |
FindForPackageName | Retrieves information about the package based on the name of that package. |
GetAllRegisteredPackages | Retrieves information about all packages that are currently loaded. |
IsPackageRegistered | Checks if a specific package is registered with the UnityEditor.AssetDatabase. |