levels | Las escenas que se incluirán en la compilación. Si está vacía, se construirá la escena actualmente abierta. Las rutas son relativas a la carpeta del proyecto (Assets/MyLevels/MyScene.unity). |
locationPathName | La ruta donde la aplicación será construida. |
target | El BuildTarget en construirse. |
options | Unas BuildOptions adicionales, como si ejecutar el player construido. |
string Un mensaje de error si un error ocurrió.
Construye un player.
Use this function to programatically create a build of your project.
Note that any references to GameObjects acquired in the editor script 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/BuildPlayer") static function MyBuild(){ var levels : String[] = ["Assets/Scene1.unity", "Assets/Scene2.unity"]; BuildPipeline.BuildPlayer( levels, "PlayerBuild", BuildTarget.StandaloneWindows, BuildOptions.None); }