-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathQuickBuild.bat
More file actions
86 lines (75 loc) · 2.32 KB
/
QuickBuild.bat
File metadata and controls
86 lines (75 loc) · 2.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
@echo off
REM ============================================
REM Quick Build Script for Asymmetric Camera Plugin
REM ============================================
setlocal enabledelayedexpansion
echo ============================================
echo Quick Build - Asymmetric Camera Plugin
echo ============================================
echo.
REM ============================================
REM Auto-detect UE5 Path (5.4 / 5.5 / 5.6)
REM ============================================
set "UE5_PATH="
REM --- Try common installation directories for each supported version ---
for %%V in (5.6 5.5 5.4) do (
if "!UE5_PATH!"=="" (
for %%D in (
"D:\Ue\UE\UE_%%V"
"C:\Program Files\Epic Games\UE_%%V"
"D:\Epic Games\UE_%%V"
"C:\Epic Games\UE_%%V"
"E:\Epic Games\UE_%%V"
) do (
if "!UE5_PATH!"=="" (
if exist "%%~D\Engine\Build\BatchFiles\Build.bat" (
set "UE5_PATH=%%~D"
echo Found UE %%V at: %%~D
)
)
)
)
)
if "!UE5_PATH!"=="" (
echo.
echo ERROR: Could not find Unreal Engine 5.4 / 5.5 / 5.6 in common locations.
echo.
echo Please open this script in a text editor and set UE5_PATH manually:
echo set "UE5_PATH=C:\Your\Path\To\UE_5.X"
echo.
echo Checked directories:
echo D:\Ue\UE\UE_5.X
echo C:\Program Files\Epic Games\UE_5.X
echo D:\Epic Games\UE_5.X
echo C:\Epic Games\UE_5.X
echo E:\Epic Games\UE_5.X
echo.
pause
exit /b 1
)
echo Using UE5 from: %UE5_PATH%
echo.
REM Project settings
set "PROJECT_ROOT=%~dp0"
set "PROJECT_NAME=MyCustomCam"
set "PROJECT_FILE=%PROJECT_ROOT%%PROJECT_NAME%.uproject"
echo Building %PROJECT_NAME%Editor (Development)...
echo.
call "%UE5_PATH%\Engine\Build\BatchFiles\Build.bat" %PROJECT_NAME%Editor Win64 Development -Project="%PROJECT_FILE%" -WaitMutex
if %ERRORLEVEL% NEQ 0 (
echo.
echo ============================================
echo BUILD FAILED
echo ============================================
pause
exit /b 1
)
echo.
echo ============================================
echo BUILD SUCCESSFUL!
echo ============================================
echo.
echo Plugin compiled successfully.
echo You can now open the project in Unreal Editor.
echo.
pause