打开unity项目之前,怎么指定unity的默认平台.md

用jenkins打包unity,要从git上拉下来项目,但是每次拉下来都是pc或者macox平台的,需要二次切换平台,资源导入的过程走了两遍,非常费时间

后来发现这个问题只有新拉下来的项目才会出现,如果是更新的项目,不用考虑这个

方法

命令行参数中添加-buildTarget Android或者-buildTarget iOS

-quit -batchmode 
-buildTarget Android 
-projectPath ${WORKSPACE} 
-executeMethod ProjectBuild.BuildForAndroid $version $codeVer $assetVersion $btype $ftype $updMeta $reBuildAB

参考

CommandLineArguments

输出log

-logFile *filePath

原文地址:https://www.cnblogs.com/jingxuan2583/p/14148150.html