构建选项。可将多个选项合并到一起。
None | 执行指定的构建,不包含任何特殊设置或额外任务。 |
Development | 构建播放器的开发版本。 |
AutoRunPlayer | 运行构建的播放器。 |
ShowBuiltPlayer | 显示构建的播放器。 |
BuildAdditionalStreamedScenes | 构建一个包含流式场景(可使用 UnityWebRequest 类加载)的压缩资源包。 |
AcceptExternalModificationsToPlayer | 构建 Xcode (iOS) 或 Eclipse (Android) 项目时使用。 |
ConnectWithProfiler | 通过连接到编辑器中的性能分析器启动播放器。 |
AllowDebugging | 允许脚本调试器远程连接到播放器。 |
SymlinkLibraries | 生成 iOS Xcode 项目时的 Symlink 运行时库(更短的迭代时间)。 |
UncompressedAssetBundle | 创建资源包时不压缩数据。 |
ConnectToHost | 将播放器设置为连接到编辑器。 |
EnableHeadlessMode | 用于以无头模式构建独立播放器的选项。 |
BuildScriptsOnly | 仅在项目中构建脚本。 |
PatchPackage | 修补 Development 应用包,而不是完全重新构建。支持的平台: |
ForceEnableAssertions | 在构建中包含断言。默认情况下,断言仅包含在开发版中。 |
CompressWithLz4 | 构建播放器时使用基于语块的 LZ4 压缩。 |
CompressWithLz4HC | 构建播放器时使用基于语块的 LZ4 高压缩。 |
StrictMode | 如果在此期间报告任何错误,则构建无法成功。 |
IncludeTestAssemblies | 构建将包含程序集以进行测试。 |
NoUniqueIdentifier | 将强制 buildGUID 全部为零。 |
WaitForPlayerConnection | 将播放器设置为在播放器启动时等待播放器连接。 |
EnableCodeCoverage | 启用代码覆盖率。在不支持命令行参数的平台上,可将其用作启用代码覆盖率的免费方式。 |
EnableDeepProfilingSupport | 在播放器中启用深度性能分析支持。 |
DetailedBuildReport | Generates more information in the BuildReport. |
ShaderLivelinkSupport | Enable Shader Livelink support. |
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.