商城网站程序,wordpress中英文网站,县城服务网站如何做,电商网站开发代码在项目开发中#xff0c;我看到了在调用 Engine\\Build\\BatchFiles\\RunUAT.bat 相关的命令行中#xff0c;有 -skipbuild、 -nocompile 两个很像的参数#xff0c;于是想探究一下它们的区别与含义。 -skipbuild 参数 到底有没有 -skipbuild 这个参数#xff1f;根据 http…在项目开发中我看到了在调用 Engine\\Build\\BatchFiles\\RunUAT.bat 相关的命令行中有 -skipbuild、 -nocompile 两个很像的参数于是想探究一下它们的区别与含义。 -skipbuild 参数 到底有没有 -skipbuild 这个参数根据 https://blog.csdn.net/u010385624/article/details/89916184 的介绍有skip这个参数但没有搜索到 -skipbuild 这个参数。我们可以在 AutomationTool.ProjectParams 看到所有的命令行传参其中只有 CommandUtils.LogLog(Build{0}, Build); CommandUtils.LogLog(SkipBuildClient{0}, SkipBuildClient); CommandUtils.LogLog(SkipBuildEditor{0}, SkipBuildEditor); 但是在这里发现了有skipbuild开关。
this.Build GetParamValueIfNotSpecified(Command, Build, this.Build, build);
bool bSkipBuild GetParamValueIfNotSpecified(Command, null, false, skipbuild);
if (bSkipBuild)
{this.Build false;
}
验证方式如果同时传 -skipbuild 和 -build 就会发现后文中的 Project.Build 无法进入到Build方法中。 -build 开关的含义 AutomationTool.ProjectParams.Build
作用1AutomationTool.ProjectParams.AutodetectSettings
else if (!this.Build) // 如果不选build那么就自动重置Target
{var ShortName ProjectUtils.GetShortProjectName(RawProjectPath);GameTarget Client ? (ShortName Client) : ShortName;EditorTarget ShortName Editor;ServerTarget ShortName Server;
}
作用2一个限制验证AutomationTool.ProjectParams.Validate具体含义暂不解释。
if (Build !HasCookedTargets !HasEditorTargets !HasProgramTargets)
{throw new AutomationException(-build is specified but there are no targets to build.);
}
作用3决定了是否运行 Project.Build。对应的日志是 ********** BUILD COMMAND STARTED ********** 调试时的注意事项
根据我之前写的博文UE4如何调试BuildCookRun_ue 的 automationtool如何debug-CSDN博客 UAT的调试对应的是 要注意只有BuildCookRun命令才有ProjectParams的解析而UBT的调试中不会涉及ProjectParams 的解析因此调试时不要断点到那里去了。 未完待续