Version: 2021.2

BuildOptions

enumeration

切换到手册

描述

构建选项。可将多个选项合并到一起。

另请参阅:BuildPipeline.BuildPlayer

变量

None执行指定的构建,不包含任何特殊设置或额外任务。
Development构建播放器的开发版本。
AutoRunPlayer运行构建的播放器。
ShowBuiltPlayer显示构建的播放器。
BuildAdditionalStreamedScenes构建一个包含流式场景(可使用 UnityWebRequest 类加载)的压缩资源包。
AcceptExternalModificationsToPlayer构建 Xcode (iOS) 或 Eclipse (Android) 项目时使用。
CleanBuildCacheClear all cached build results, resulting in a full rebuild of all scripts and all player data.
ConnectWithProfiler通过连接到编辑器中的性能分析器启动播放器。
AllowDebugging允许脚本调试器远程连接到播放器。
SymlinkSourcesSymlink sources when generating the project. This is useful if you're changing source files inside the generated project and want to bring the changes back into your Unity project or a package.
UncompressedAssetBundle创建资源包时不压缩数据。
ConnectToHost将播放器设置为连接到编辑器。
CustomConnectionIDDetermines if the player should be using the custom connection ID.
BuildScriptsOnly仅在项目中构建脚本。
PatchPackage修补 Development 应用包,而不是完全重新构建。Supported platforms: Android.
ForceEnableAssertions在构建中包含断言。默认情况下,断言仅包含在开发版中。
CompressWithLz4构建播放器时使用基于语块的 LZ4 压缩。
CompressWithLz4HC构建播放器时使用基于语块的 LZ4 高压缩。
StrictMode如果在此期间报告任何错误,则构建无法成功。
IncludeTestAssemblies构建将包含程序集以进行测试。
NoUniqueIdentifier将强制 buildGUID 全部为零。
WaitForPlayerConnection将播放器设置为在播放器启动时等待播放器连接。
EnableCodeCoverage启用代码覆盖率。在不支持命令行参数的平台上,可将其用作启用代码覆盖率的免费方式。
EnableDeepProfilingSupport在播放器中启用深度性能分析支持。
DetailedBuildReportGenerates more information in the BuildReport.
ShaderLivelinkSupportEnable Shader Livelink support.