UE4Editor.exe运行与调试 “-run=XX” 命令行

如果看到这么一条工作命令:

%EnginePath%\Binaries\Win64\UE4Editor-Cmd.exe %ClientPath%\%ProjectName%.uproject -run=HotPatcher {其它配置}

它意味着命令行,"-run=" 后面接的内容是命令行,

cpp 复制代码
class UHotPatcherCommandlet :public UCommandlet

文件一般位于 Plugins\HotPatcher\Source\......\Classes\Commandlets\HotPatcherCommandlet.h。

cpp 复制代码
int32 UCookCommandlet::Main(const FString& CmdLineParams)

就如同 -run=cook 对应下面入口是一样的,UCommandlet类及其子类的重要方法是 Main() 。在Main这里下断点,就可以调试其逻辑。调试方法见:UE4调试UE4Editor-Cmd.exe-CSDN博客

相关推荐
小江村儿的文杰1 天前
UE4通过打开DumpShader开关查看ShaderError的引用路径
ue4
FlyingMindIndex05 天前
UE_ContrlRig
ue5·ue4
HELLOMILI6 天前
[UnrealEngine] 虚幻引擎UE5下载及安装(UE4、UE5)
游戏·ue5·游戏引擎·ue4·虚幻·软件需求
小江村儿的文杰6 天前
UE4报错 Unable to instantiate UnrealEd module for non-editor targets
ue4
pop_opo_7 天前
Unreal Engine 4.27 + AirSim 无人机仿真环境搭建:澳大利亚农村场景更换教程
ue4·无人机
小江村儿的文杰25 天前
UE4 UAT 的六大流程 build cook stage pacakge archive deploy 与UAT的参数
ue4
小江村儿的文杰25 天前
UE4 Rider调试时添加自定义命令行参数
ue4
小江村儿的文杰1 个月前
UE4 Mac构建编译报错 no template named “is_void_v” in namespace “std”
macos·ue4
小江村儿的文杰1 个月前
理解UE4中C++17的...符号及enable_if_t的用法及SFINAE思想
数据结构·c++·ue4
小江村儿的文杰1 个月前
UE4 Mac构建编译报错 no member named “disjunction” in namespace “std”
ue4