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 Submission failedFor some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.
Close Your name Your email Suggestion* ReturnsBuildReport A BuildReport object containing build process information.
DescriptionBuilds a player.
Use this function to programatically create a build of your project.
Calling this method will invalidate any variables in the editor script that reference GameObjects, so they will need to be reacquired after the call.
Scripts can run at strategic points during the build by implementing one of the supported callback interfaces, for example BuildPlayerProcessor, IPreprocessBuildWithReport, IProcessSceneWithReport and IPostprocessBuildWithReport.
Note: Be aware that changes to scripting symbols only take effect at the next domain reload, when scripts are recompiled.
This means if you make changes to the defined scripting symbols via code using PlayerSettings.SetDefineSymbolsForGroup without a domain reload before calling this function, those changes won't take effect.
It also means that the built-in scripting symbols defined for the current active target platform (such as UNITY_STANDALONE_WIN, or UNITY_ANDROID) remain in place even if you try to build for a different target platform, which can result in the wrong code being compiled into your build.
Additional resources: BuildPlayerWindow.DefaultBuildMethods.BuildPlayer.
ReturnsBuildReport A BuildReport object containing build process information.
DescriptionBuilds a player from a specific build profile.
Parameters Parameter Description levels The scenes to include in the build. If empty, the build includes only the current open scene. Paths are relative to the project folder, for exampleAssets/MyLevels/MyScene.unity
. locationPathName The path where the application will be built. For information on the platform extensions to include in the path, refer to Build path requirements for target platforms. target The BuildTarget to build. options Additional BuildOptions, like whether to run the built player. Returns
BuildReport A BuildReport object containing build process information.
DescriptionBuilds a Player. These overloads are still supported, but will be replaced. Please use BuildPlayer(BuildPlayerOptions buildPlayerOptions) and BuildPlayer(BuildPlayerWithProfileOptions buildPlayerWithProfileOptions) instead.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4