默认情况下,Unity Cloud Build 会编译已在 Unity Editor 里通过 File > Build Settings > Scenes in Build 添加到项目中的场景。单击 Add Open Scenes 可添加更多场景。请参阅有关编译发布 (Publishing builds) 的文档以了解更多信息。
若要指示 Unity Cloud Build 忽略 Unity Editor 中的 Scenes in Build 列表而编译其他场景列表,您需要通过 Unity 开发者网站提供__场景列表__。
在 Unity 开发者网站上,转至编译目标的 Advanced Options。(请参阅有关访问和编辑 Advanced Options 的文档。)
将想要包含的场景列表添加到 Scene List。对于希望包含的每个场景文件,以从 Assets 目录起的相对路径提供文件路径。
这对于开发很有用。例如,您可能有一个编译目标包含了所有场景,但需要很长时间才能完成编译。如果您只使用一个场景,可能会发现创建另一个仅包含这一个场景的编译目标会很有用。此编译过程应该会快得多,并且允许更快迭代开发版本。
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.