因为有些时候要用到cmdline,如果是C++,那么很容易就从winmain那里获取到了,但是unity不知道怎么搞,去找了API没找到了,后来直接Google一下,其实只要去问.NET要就好了
function GetCommandLineArgs() : String[] {
Debug.Log("CommandLine: {0}" + System.Environment.CommandLine);
var arguments : String[] = System.Environment.GetCommandLineArgs();
Debug.Log("GetCommandLineArgs: {0}" + String.Join(", ", arguments));
return arguments;
}