(2)Shell

/Applications/Unity/Unity.app/Contents/MacOS/Unity -quit -batchmode -projectpath /Users/luoshengyu/autoBuild -executeMethod BuildApp.BuildOp

(3)传递参数
Shell可以向Unity传递参数,在Unity中可通过 System.Environment.GetCommandLineArgs(); 得到shell参数。
string[] strs =  System.Environment.GetCommandLineArgs();
foreach(var s in strs)
if(s.Contains("-arg:"))
string arg = s.Split(':')[1];
//处理参数//

Unity命令行文档:

http://docs.unity3d.com/Manual/CommandLineArguments.html