From eead45d6bf4b65d7a76dd71fccf2dfa79abc09d3 Mon Sep 17 00:00:00 2001 From: DuyCa Date: Mon, 16 Oct 2023 19:17:48 +0700 Subject: [PATCH] Update Loading WaitAsyncIsDone --- .../Runtime/Managing/Scened/AddressableSceneProcessor.cs | 2 +- Assets/FishNet/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Assets/FishNet/Runtime/Managing/Scened/AddressableSceneProcessor.cs b/Assets/FishNet/Runtime/Managing/Scened/AddressableSceneProcessor.cs index c9f3b7c4..ce2c26b5 100644 --- a/Assets/FishNet/Runtime/Managing/Scened/AddressableSceneProcessor.cs +++ b/Assets/FishNet/Runtime/Managing/Scened/AddressableSceneProcessor.cs @@ -65,7 +65,7 @@ public override void BeginUnloadAsync(Scene scene) public override async UniTask WaitAsyncIsDone() { foreach (var ao in _loadAsyncHandles) - await ao; + await UniTask.WaitUntil(() => ao.IsDone); } } } \ No newline at end of file diff --git a/Assets/FishNet/package.json b/Assets/FishNet/package.json index 2cbe74d8..f9b85a38 100644 --- a/Assets/FishNet/package.json +++ b/Assets/FishNet/package.json @@ -2,7 +2,7 @@ "name": "com.fishnet", "displayName": "FishNet - Unity Networking Evolved", "description": "FishNet - Unity Networking Evolved", - "version": "3.7.25", + "version": "3.7.26", "unity": "2021.3", "license": "MIT", "repository": {