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);