秉承技术至上的原则,这里我就直接复制粘贴了哈! unity3d的一些命令行参数在自动化工具开发时要用到,很有用,记一下!
// MacOS
/Applications/Unity/Unity.app/Contents/MacOS/Unity -quit -batchmode -logFile $(LOG_FILE_PATH) -projectPath $(PWD) -executeMethod CommandBuild.Build
// Windows
C:\program files\Unity\Editor\Unity.exe -quit -batchmode -logFile $(LOG_FILE_PATH) -projectPath $(PWD) -executeMethod CommandBuild.Build