From 154390648f7c5865aa046dfbeb98488079b58bb6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?JasonXuDeveloper=20-=20=E5=82=91?= Date: Thu, 29 Jan 2026 09:39:09 +1100 Subject: [PATCH] fix(core): convert AsyncOperation to UniTask for Unity 6 compatibility MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In Unity 6, UnityEngine.AsyncOperation cannot be directly awaited. Convert to UniTask using .ToUniTask() extension method. Co-Authored-By: Claude Opus 4.5 Signed-off-by: JasonXuDeveloper - 傑 --- .../Runtime/Bootstrap.Common.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UnityProject/Packages/com.jasonxudeveloper.jengine.core/Runtime/Bootstrap.Common.cs b/UnityProject/Packages/com.jasonxudeveloper.jengine.core/Runtime/Bootstrap.Common.cs index d645c51a..878808b0 100644 --- a/UnityProject/Packages/com.jasonxudeveloper.jengine.core/Runtime/Bootstrap.Common.cs +++ b/UnityProject/Packages/com.jasonxudeveloper.jengine.core/Runtime/Bootstrap.Common.cs @@ -92,7 +92,7 @@ public static async UniTask LoadHotUpdateScene(ResourcePackage pack // Call error callback await callbacks.OnError(e); // Switch back to previous scene - await SceneManager.LoadSceneAsync(previousSceneName); + await SceneManager.LoadSceneAsync(previousSceneName).ToUniTask(); return null; }