
Specify where the Editor or Windows/Linux/OSX standalone log file are written.
The method to be executed must be defined as static. To use -executeMethod, you need to place the enclosing script in an Editor folder. To pass parameters, add them to the command line and retrieve them inside the function using. To return an error from the command line process, either throw an exception which causes Unity to exit with return code 1, or call EditorApplication.Exit with a non-zero return code. This can be used to do tasks such as continous integration, performing Unit Tests, making builds or preparing data.
Execute the static method as soon as Unity is started, the project is open and after the optional Asset server update has been performed. 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. 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. #Unity cmd-line tool - Macosx - installed from pkg /Applications/Unity/Unity.app/Contents/MacOS/Unity apk should be ready for deployment, iOS Xcode source requires archive step furthermore.
run unity for about 10-30 seconds without -batchmode and -nographics flags → this will create CACerts for unity → needed to run unity.