From cc1983f280d4a444583f9b57d86772dc5a4713bd Mon Sep 17 00:00:00 2001 From: Pavel Shevaev Date: Wed, 25 May 2022 16:50:44 +0300 Subject: [PATCH] Fixing proj path --- unity.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unity.inc.php b/unity.inc.php index cd3133c..3a6e5ac 100644 --- a/unity.inc.php +++ b/unity.inc.php @@ -36,7 +36,7 @@ function unity_exec($func, $build_target = "", $quit = true, $batchmode = true) { global $GAME_ROOT; - $proj_path = normalize_path("$GAME_ROOT/"); + $proj_path = normalize_path(get("UNITY_ASSETS_DIR") . '/../'); $log_file = "$GAME_ROOT/build/unity.log"; ensure_rm($log_file);