Legacy Documentation: Version 5.2
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

BuildOptions

enumeration

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Sumbission failed

For some reason your suggested change could not be submitted. Please try again in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Switch to Manual

Description

Building options. Multiple options can be combined together.

See Also: BuildPipeline.BuildPlayer.

Variables

NonePerform the specified build without any special settings or extra tasks.
DevelopmentBuild a development version of the player.
AutoRunPlayerRun the built player.
ShowBuiltPlayerShow the built player.
BuildAdditionalStreamedScenesBuild a compressed asset bundle that contains streamed scenes loadable with the WWW class.
AcceptExternalModificationsToPlayerUsed when building Xcode (iPhone) or Eclipse (Android) projects.
WebPlayerOfflineDeploymentCopy UnityObject.js alongside Web Player so it wouldn't have to be downloaded from internet.
ConnectWithProfilerStart the player with a connection to the profiler in the editor.
AllowDebuggingAllow script debuggers to attach to the player remotely.
SymlinkLibrariesSymlink runtime libraries when generating iOS Xcode project. (Faster iteration time).
UncompressedAssetBundleDon't compress the data when creating the asset bundle.
EnableHeadlessModeBuild headless Linux standalone.
BuildScriptsOnlyBuild only the scripts of a project.
ForceEnableAssertionsInclude assertions in the build. By default, the assertions are only included in development builds.
ForceOptimizeScriptCompilationForce full optimizations for script complilation in Development builds.