@echo off
SETLOCAL EnableDelayedExpansion
for /F "tokens=1,2 delims=#" %%a in ('"prompt #$H#$E# & echo on & for %%b in (1) do rem"') do (
set "DEL=%%a"
)
rem echo say the name of the colors, don't read
call :ct 0A "开始编译4-27"
echo.
call "D:\Program Files\Epic Games\UE_4.27\Engine\Build\BatchFiles\RunUAT.bat" BuildPlugin -plugin=%1 -package="E:\UEPluginBuildOut\UE4.27\%2"
call :ct 0A "开始编译5-2"
echo.
call "D:\Program Files\Epic Games\UE_5.2\Engine\Build\BatchFiles\RunUAT.bat" BuildPlugin -plugin=%1 -package="E:\UEPluginBuildOut\UE5.2\%2"
call :ct 0A "开始编译5-3"
echo.
call "D:\Program Files\Epic Games\UE_5.3\Engine\Build\BatchFiles\RunUAT.bat" BuildPlugin -plugin=%1 -package="E:\UEPluginBuildOut\UE5.3\%2"
goto:eof
:ct
<nul set /p ".=%DEL%" > "%~2"
findstr /v /a:%1 /R "^$" "%~2" nul
del "%~2" > nul 2>&1
goto :eof
启动命令行工具 参数1将需要编译的uplugin拖入 参数2填写插件名
根据引擎安装目录自行修改调用的RunUAT.bat路径