Unity Standard Assets 和 Unity Asset Store 上的项目都是通过资源包提供的。资源包集合了来自 Unity 项目或项目元素的文件和数据,Unity 将它们压缩并存储在一个扩展名为 .unitypackage
的文件中。与 zip 文件一样,资源包在解压缩后保持其原始目录结构,其中还包括资源的元数据(例如导入设置和指向其他资源的链接)。
从 Unity 2020.1 开始,Unity Editor 中不再托管专用的 Asset Store 窗口。但是,您仍然可以访问 https://assetstore.unity.com/ 上的 Asset Store 网站,并且仍然可以搜索已购买和下载的资源包,还可以直接在 Package Manager 窗口中导入和下载资源包。
要从 Unity 或第三方发布者处购买资源包,请先搜索 Unity Asset Store 以查找满足您需求的资源包。找到要使用的资源包后,请在 Asset Store 中购买或下载该资源包。还可以使用标签来整理资源并隐藏已弃用或未使用的资源包,使查找资源包变得更容易。
在 Unity Package Manager 中,选择 My Assets 筛选条件以查看您可用资源包的列表。可按名称搜索资源包。找到要使用的资源包后,可将资源包下载并导入到 Package Manager 中。如果资源包具有可用的较新版本,也可以直接在 Package Manager 窗口中对其进行更新。
要创建您自己的(自定义)资源包,您可以:
要将本地的自定义资源包导入项目,请执行以下操作:
可使用 Package Manager 窗口来管理项目中的资源包。但是,如果您需要直接访问资源文件,可以在以下路径中找到这些文件:
~/Library/Unity/Asset Store
C:\Users\accountName\AppData\Roaming\Unity\Asset Store
这些文件夹包含与特定 Asset Store 供应商对应的子文件夹,并在下载和导入后变为可用状态。资源文件以资源包发布者定义的结构包含在子文件夹中。
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.