diff --git a/Pawn_Unreal/build.bat b/Pawn_Unreal/build.bat new file mode 100644 index 0000000..0c04bd2 --- /dev/null +++ b/Pawn_Unreal/build.bat @@ -0,0 +1,7 @@ +@echo off +cd /D "%~dp0" +call vars.bat +call "%BUILD_BAT%" %PROJECT%Editor Win64 Development "%UPROJECT_PATH%" -waitmutex -NoHotReload +if %errorlevel% NEQ 0 ( + pause +) \ No newline at end of file diff --git a/Pawn_Unreal/build_and_editor.bat b/Pawn_Unreal/build_and_editor.bat new file mode 100644 index 0000000..d1a5c50 --- /dev/null +++ b/Pawn_Unreal/build_and_editor.bat @@ -0,0 +1,6 @@ +@echo off +cd /D "%~dp0" +call build.bat +if %errorlevel% == 0 ( + call editor.bat +) \ No newline at end of file diff --git a/Pawn_Unreal/editor.bat b/Pawn_Unreal/editor.bat new file mode 100644 index 0000000..b6a4cd7 --- /dev/null +++ b/Pawn_Unreal/editor.bat @@ -0,0 +1,4 @@ +@echo off +cd /D "%~dp0" +call vars.bat +start "" "%UE5_DIR%\Engine\Binaries\Win64\UnrealEditor.exe" "%UPROJECT_PATH%" %* \ No newline at end of file diff --git a/Pawn_Unreal/vars.bat b/Pawn_Unreal/vars.bat new file mode 100644 index 0000000..017f0b7 --- /dev/null +++ b/Pawn_Unreal/vars.bat @@ -0,0 +1,12 @@ +@echo off +cd /D "%~dp0" +set ROOTDIR=%~dp0 +set ROOTDIR=%ROOTDIR:~0,-1% + +set PROJECT=Pawn +set PROJECT_DIR=%ROOTDIR% +set UPROJECT_PATH=%PROJECT_DIR%\%PROJECT%.uproject + +set UE5_DIR=C:\Program Files\Epic Games\UE_5.2 +set UE5EDITOR_EXE=%UE5_DIR%\Engine\Binaries\Win64\UnrealEditor.exe +set BUILD_BAT=%UE5_DIR%\Engine\Build\BatchFiles\Build.bat \ No newline at end of file