UE4.27.2 RemoteControl的坑
升级到4.27.2后,需要在swtichboard的nDisplaySettings的Extra Cmd Line Args字段添加-RCWebControlEnable -RCWebInterfaceEnable这两个参数。这样WebRemoteControl才能正常工作。
要在打包后的程序中使用RemoteControlWebInterface,还需要在目标机上运行程序的同时,执行WebApp。也可以把RemoteControlWebInterface插件下的WebApp目录拷贝到打包程序目录下。再写一个Run.bat脚本放在打包程序目录下,用来一次性启动这两个程序:
start My.exe -RCWebControlEnable -RCWebInterfaceEnable cd .\WebApp call .\Start.bat