一个包中包含适合项目各种需求的功能。这可能包括随 Editor 一起安装的所有 Unity 核心功能,或者可根据需要安装的其他包。
有关使用包的更多一般信息,请参阅使用 Package Manager。
If you are only interested in finding documentation or information about a specific package, click the links on the Verified and Preview packages and Built-in packages pages. To find a package by keyword, see the Packages by keywords page.
有关借助 Unity Package Manager 来使用包的信息,请单击下表提供的指向相应文档各个主题的链接:
您想做什么? | 查看此文档: |
---|---|
获取包的简介 |
查找包说明了如何使用 Package Manager 窗口查找每个包的特定版本。 Package Manager 窗口部分介绍了如何与 Unity 内部的 Unity Package Manager 进行交互。 |
安装包 |
从注册表中安装介绍了如何使用 Package Manager 窗口从注册表中安装新的包。 安装本地包介绍了如何使用 Package Manager 窗口从本地文件夹安装包。 依赖项介绍了如何编辑项目清单以从所有位置安装包,包括 Package Manager 窗口不支持的两个位置:嵌入式依赖项和 Git URL。 切换到另一个包版本介绍了如何使用 Package Manager 窗口切换已安装包的版本。 移除某个已安装的包介绍了如何使用 Package Manager 窗口从项目中移除包。 禁用内置包介绍了如何使用 Package Manager 窗口启用和禁用内置包。 |
对包进行故障排除 | 如果项目的任何包(包括 Package Manager 窗口 本身)无法正确加载,请参阅故障排除和包冲突部分。 |
进一步了解如何使用清单 |
项目清单参考页面介绍了每个属性,包括哪些值有效以及各个值的作用。 检查包参考页面介绍了如何在 Inspector 中查看包清单。如果包是可变的(可编辑的),那么还可以使用 Inspector 来修改清单本身。 |
了解包的高级使用方式 | 要开始创建与 Package Manager 交互的脚本,请参阅包的脚本 API。此页面概要介绍了如何使用 Package Manager API 和代码示例(说明如何浏览包列表以及将包添加到项目)。 除了标准 Unity 注册表之外,如果还想了解有关如何使用自己的包注册表服务器的信息,请参阅有作用域的包注册表。 |
在包中构建和共享您自己的工具和资源 | 自定义包部分完整介绍了如何构建您自己的包。此部分介绍了自定义包的要求,例如命名和文件结构。还介绍了如何填充__包清单__、共享包等。 |
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.