用于描述 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 | 获取有关包含资源且基于该资源的路径的包的信息。 |
GetAllRegisteredPackages | Retrieves information about all packages that are currently loaded. |
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.