创建资源包草案后,可以添加资源并将它们上传到该资源包草案。有两种方式可以做到这一点:
为防止在上传和导入时让用户产生混淆,请确保要上传的资源位于与此次提交具有相同名称的顶级文件夹中。此文件夹包含项目的所有组件:
注意:如果您的资源包中包含音频或视频文件,必须在资源包草案的 Package Detail 部分的 Audio/Video 部分上传媒体资源的样本。
要向资源包上传资源,请执行以下操作:
从 Asset Store 下载 Asset Store Tools 资源包。
打开包含了要提交到 Asset Store 的内容的 Unity 项目,然后将 Asset Store Tools 导入到该项目中。
从 Unity Editor 的主菜单中选择 Asset Store Tools > Package Upload。
此时会显示 Publisher Login 对话框,提示您输入发布者凭据:
Package Upload 工具在 Package Upload 窗口中显示您的草案和资源包:
如果您没有在列表中看到您的资源包草案,请单击右上角的 Refresh Packages 按钮。
从列表中选择要使用的资源包草案。
单击 Select 按钮以从文件浏览器选择包含待上传资源的文件夹。只能选择一个文件夹,如果所选文件夹为空,则在单击 Validate 或 Upload 按钮时会出现错误消息。
单击 Validate 按钮以显示 Validator 窗口。
单击 Scan 按钮以检查您的资源包是否有任何问题。在提交资源包以供批准之前,应先解决这些问题。完成后,关闭该窗口以返回到 Package Upload 窗口。
单击 Upload 将资源连接到资源包。所选文件夹名称旁边的状态栏会显示上传进度。上传完成后会出现一个对话框,让您知道上传是否成功。
要测试新创建的 .unitypackage
文件,请创建一个新的 Unity 项目并将该资源包导入到这个项目中。
您可以关闭窗口并返回到 Publisher Account 页面,在该页面中可以对资源包草案进行任何最终更改,然后提交资源包以进行最终批准。
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.