buildLinu圆4Player path/to/your/build).īuild a 64-bit standalone Mac OSX player (for example, -buildOSXUniversalPlayer path/to/your/build.app). To force a different platform, use the -buildTarget option.Ĭonstruir un reproductor standalone Linux de 64-bit (e.g. If the project has not yet been imported when using -batchmode, the target platform is the default one. To check whether the Editor or Standalone Player is running in batch mode, use the Application.isBatchMode operator. You cannot open a project in batch mode while the Editor has the same project open only a single instance of Unity can run at a time. However, the Log Files still contain the full log information. Note that in batch mode, Unity sends a minimal version of its log output to the console. When an exception occurs during execution of the script code, the Asset server updates fail, or other operations fail, Unity immediately exits with return code 1. Always use this in conjunction with the other command line arguments to ensure no pop-up windows appear and eliminate the need for any human intervention. The APIUpdater will not run if you omit this command line argument when you launch Unity in batch mode. Use this command line option to specify that APIUpdater should run when Unity is launched in batch mode. This section describes the command line options available. You can run the Editor and build Unity applications with additional commands and information on startup. "C:\Program Files\Unity\Editor\Unity.exe" -batchmode -manualLicenseFile -logfileįor more details, read the Manual Activation Guide. On Windows, type the following into the Command Prompt: "C:\Program Files\Unity\Editor\Unity.exe" -batchmode -createManualActivationFile -logfile Applications/Unity/Unity.app/Contents/MacOS/Unity -batchmode -manualLicenseFile -logfile On macOS, type the following into the Terminal: /Applications/Unity/Unity.app/Contents/MacOS/Unity -batchmode -createManualActivationFile -logfile Create a license activation file and import license file by command Returning the license is useful when you no longer want to use Unity on the machine, and want to use the same license on another machine. On macOS, type the following into the Terminal to return the license: /Applications/Unity/Unity.app/Contents/MacOS/Unity -quit -batchmode -returnlicenseĮn Windows: "C:\Program Files\Unity\Editor\Unity.exe" -quit -batchmode -returnlicense Returning the license to the license server On Windows, type the following into the Command Prompt to silently launch Unity: "C:\Program Files\Unity\Editor\Unity.exe" -batchmode -username - password XXXXXXXXXXXXX -serial E3-XXXX-XXXX-XXXX-XXXX-XXXX –quit Note: If you use continuous integration (CI) tools like Jenkins to activate via the command line, add the -nographics flag to prevent a WindowServer error. Ejecutando Unity SilenciosamenteĮn macOS, ingrese el siguiente a la Terminal para ejecutar de manera silenciosa Unity: /Applications/Unity/Unity.app/Contents/MacOS/Unity -quit -batchmode -serial SB-XXXX-XXXX-XXXX-XXXX-XXXX -username -password 'MyPassw0rd' Note: Use the same method to launch standalone Unity applications. When you launch Unity like this, it receives commands and information on startup, which can be very useful for test suites, automated builds and other production tasks. On Windows, type the following into the Command Prompt to launch Unity: "C:\Program Files\Unity\Editor\Unity.exe" Launching UnityĮn macOS, ingrese lo siguiente a la Terminal para ejecutar Unity: /Applications/Unity/Unity.app/Contents/MacOS/Unity You can run Unity from the command line (from the macOS Terminal or the Windows Command Prompt).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |