Skip to content

Commit 1543906

Browse files
fix(core): convert AsyncOperation to UniTask for Unity 6 compatibility
In Unity 6, UnityEngine.AsyncOperation cannot be directly awaited. Convert to UniTask using .ToUniTask() extension method. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> Signed-off-by: JasonXuDeveloper - 傑 <jason@xgamedev.net>
1 parent e794f2c commit 1543906

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

UnityProject/Packages/com.jasonxudeveloper.jengine.core/Runtime/Bootstrap.Common.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public static async UniTask<SceneHandle> LoadHotUpdateScene(ResourcePackage pack
9292
// Call error callback
9393
await callbacks.OnError(e);
9494
// Switch back to previous scene
95-
await SceneManager.LoadSceneAsync(previousSceneName);
95+
await SceneManager.LoadSceneAsync(previousSceneName).ToUniTask();
9696

9797
return null;
9898
}

0 commit comments

Comments
 (0)