![]() ![]() Opening a project in batch mode while the Editor has the same project open is not supported only a single instance of Unity can run at a time.īuild a 32-bit standalone Linux player (for example, -buildLinux32Player path/to/your/build).īuild a 64-bit standalone Linux player (for example, -buildLinu圆4Player path/to/your/build).īuild a combined 32-bit and 64-bit standalone Linux player (for example, -buildLinuxUniversalPlayer path/to/your/build).īuild a 32-bit standalone Mac OSX player (for example, -buildOSXPlayer path/to/your/build.app).īuild a 64-bit standalone Mac OSX player (for example, -buildOSX64Player path/to/your/build.app).īuild a combined 32-bit and 64-bit standalone Mac OSX player (for example, -buildOSXUniversalPlayer path/to/your/build.app).Īllows the selection of an active build target before a project is loaded. 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 that fail, Unity immediately exits with return code 1. This should always be used in conjunction with the other command line arguments, because it ensures no pop-up windows appear and eliminates the need for any human intervention. If no project exists at the path given by -projectPath, then one is created automatically. If no project name is given, then the last project opened by Unity is used. It is advisable to use this command in conjunction with the -projectPath argument to ensure you are working with the correct project. The port is optional, and if not given it is assumed to be the standard one (10733). Commandįorce an update of the project in the Asset Server given by IP:port. This section describes the command line options available. On 32-bit Windows, type the following into the Command Prompt to silently launch Unity: "C:\Program Files (x86)\Unity\Editor\Unity.exe" -quit -batchmode -serial SB-XXXX-XXXX-XXXX-XXXX-XXXX -username -password "MyPassw0rd"Īs mentioned above, the Editor and built Unity games can be supplied with additional commands and information on startup. On 64-bit Windows, type the following into the Command Prompt to silently launch Unity: "C:\Program Files\Unity\Editor\Unity.exe" -quit -batchmode -serial SB-XXXX-XXXX-XXXX-XXXX-XXXX -username -password "MyPassw0rd" On macOS, type the following into the Terminal to silently launch Unity: /Applications/Unity/Unity.app/Contents/MacOS/Unity -quit -batchmode -serial SB-XXXX-XXXX-XXXX-XXXX-XXXX -username -password 'MyPassw0rd' Use the same method to launch standalone Unity games. On 32-bit Windows, type the following into the Command Prompt to launch Unity: C:\Program Files (x86)\Unity\Editor\Unity.exe On 64-bit Windows, type the following into the Command Prompt to launch Unity: C:\Program Files\Unity\Editor\Unity.exe On macOS, type the following into the Terminal to launch Unity: /Applications/Unity/Unity.app/Contents/MacOS/Unity When launched in this way, Unity can receive commands and information on startup, which can be very useful for test suites, automated builds and other production tasks. However, it is also possible to run it from the command line (from the macOS Terminal or the Windows Command Prompt). ![]() Unity is usually launched by double-clicking its icon from the desktop. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |