当您在**项目**窗口的Packages
子文件夹中选择包清单文件(package.json
)时,将打开包清单每个包都有一个清单,它向包管理器提供有关包的信息。清单包含诸如包名称、版本、用户描述、对其他包的依赖项(如果有)以及其他详细信息等信息。更多信息
请参阅术语表窗口。
(A) 选择**打开**以在您的默认代码编辑器(例如 Visual Studio)中加载此包清单。选择**在包管理器中查看**以打开包管理器窗口并在其详细信息面板中加载此包。如果要选择其他导入器,请选择**导入器**下拉菜单并选择要使用的包导入器。
(B) 信息部分包含有关此特定包版本的信息。
(C) 使用**简要描述**文本框指定您希望在包管理器窗口的详细信息面板中显示的文本。有关更多信息,请参阅description属性的文档。
(D) 使用依赖项部分管理此包依赖的包列表。
(E) 选择**恢复**以放弃对清单所做的任何更改。选择**应用**以保存对清单所做的任何更改。
属性 | 描述 |
---|---|
名称 | 此包的官方名称。对于 Unity 包,这是简称(不带开头com.unity. 字符串的官方名称)。 |
组织名称 | 创建此包的Unity 组织的标识符。 |
显示名称 | 在项目窗口显示您的Assets 文件夹内容的窗口(项目选项卡)更多信息请参阅术语表和包管理器窗口中显示的用户界面名称。有关更多信息,请参阅displayName属性的文档。 |
版本 | 包版本号。有关更多信息,请参阅version属性的文档。 |
最低 Unity 版本 | 启用此选项以指定此包兼容的最低 Unity 版本。启用此选项后,将显示**主版本**、**次版本**和**发布版本**属性。 如果此包与所有 Unity 版本兼容,请清除此复选框并删除**主版本**、**次版本**和**发布版本**属性。 有关更多信息,请参阅unity属性的文档。 |
主版本 | 指定最低 Unity 版本的 MAJOR 部分。有关更多信息,请参阅unity属性的文档。 |
次版本 | 指定最低 Unity 版本的 MINOR 部分。有关更多信息,请参阅unity属性的文档。 |
发布版本 | 指定最低 Unity 版本的 UPDATE 和 RELEASE 部分。有关更多信息,请参阅unityRelease属性的文档。 |
列出此包的其他依赖包。每个条目包含官方包名称(例如,com.unity.probuilder
)及其版本号。
添加新的依赖项
删除依赖项
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.