在 Unity Cloud Build 中配置完项目后,您可以为每个编译目标设置高级编译选项。
这些选项旨在适应 Unity Editor 中支持的更复杂的编译处理选项。
要访问编译目标的高级选项,请转至 Unity 开发者网站。选择您的项目,进入项目的 Unity Cloud Build 部分,然后选择 Config 选项卡(如下所示)。
单击 [+] Show Advanced Options__(如下所示)。随后将显示编译目标的 Advanced Options__ 下拉列表。
展开 Advanced Options 下拉列表时,标题变为 [-] Hide Advanced Options。
单击 Edit Advanced Options 调出一个屏幕来配置这些选项。
所有高级选项都是针对每个编译目标进行设置的。这意味着,例如,单击某个 iOS 目标的 Advanced Options 链接时,这些选项仅适用于该 iOS 目标。单击某个 Android 目标的 Advanced Options 时,这些选项仅适用于该 Android 目标。因此,您可以针对每个编译目标为每个平台使用不同的预处理和后处理方法。
开发版包含调试符号并启用性能分析器 (Profiler)。
请参阅有关开发版的文档以了解更多信息。
有时需要在 Unity 中编译项目之前或之后操作项目文件。例如将变量从外部文件复制到项目中、处理资源或使用需要特殊处理的插件。
请参阅有关导出前和导出后方法的文档以了解更多信息。
如果要发布到 iOS,则在 Unity 编译过程完成后但在 Xcode 编译过程开始之前,您可能需要纳入各种框架。
请参阅有关 Xcode framework 的文档以了解更多信息。
Unity 包括名为依赖于平台的编译 (Platform Dependent Compilation) 的功能。此功能包括预处理器指令,可让您对脚本进行分区,从而为受支持平台之一专门编译和执行一段代码。您也可以为每个编译目标指定自己的 #define 指令。
请参阅有关自定义脚本 #define 指令的文档以了解更多信息。
如果需要配置编译目标来编译一组自定义场景(不同于 Unity Editor 中的项目 Build Settings 菜单中已经设置的场景),请使用此列表。
请参阅有关包含特定场景的文档以了解更多信息。
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.