levels | The scenes to be included in the build. If empty, the currently open scene will be built. Paths are relative to the project folder (AssetsMyLevels MyScene.unity). |
locationPathName | The path where the application will be built. |
target | The BuildTarget to build. |
options | Additional BuildOptions, like whether to run the built player. |
Builds a player (Unity Pro only).
before
the BuildPlayer call will be invalid after it and will need to be reacquired.// Build a folder containing unity3d file and html file @MenuItem ("Build/BuildWebplayer") static function MyBuild(){ var levels : String[] = ["Assets/Scene1.unity", "Assets/Scene2.unity"]; BuildPipeline.BuildPlayer( levels, "WebPlayerBuild", BuildTarget.WebPlayer, BuildOptions.None); }