echo off
set projectPath="Z:\Abv_land\AboveLand.uproject"
set enginepath=Z:\Abv_Land_Engine
set /P check="Do you want to build binaries from Engine : %enginepath% [Y/N]"
if /I "%check%" EQU "Y" goto :continue
if /I "%check%" EQU "N" goto :End
:continue
del *.sln
rmdir /s /q .vs
rmdir /s /q Binaries
set /P choice="Do you want CleanBuild :[Y/N]"
if /I "%choice%" EQU "Y" goto :cleanbuild
if /I "%choice%" EQU "N" goto :regularbuild
:cleanbuild
rmdir /s /q Intermediate
rmdir /s /q DerivedDataCache
goto :regularbuild
:regularbuild
set?? ?UVS="%enginepath%\Engine\Binaries\Win64\UnrealVersionSelector-Win64-Shipping.exe"
set UBT="%enginepath%\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.exe"
attrib -r %projectPath%
echo Swicthing project to %enginepath%
%UVS% /switchversionsilent %projectPath% %enginepath%
echo Generating project files
%UVS% /projectfiles %projectPath%
echo Compiling project
%UBT% Development Win64 -Project=%projectPath% -TargetType=Editor -Progress -NoHotReloadFromIDE
attrib +r %projectPath%
goto :End
:End文章來源:http://www.zghlxwxcb.cn/news/detail-426557.html
pause文章來源地址http://www.zghlxwxcb.cn/news/detail-426557.html
到了這里,關(guān)于ue5 小知識(shí)點(diǎn) 命令行編譯 虛幻工程的文章就介紹完了。如果您還想了解更多內(nèi)容,請?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!