From b20922de16f330e2c2a59936a59fea7a1e312558 Mon Sep 17 00:00:00 2001 From: godzzz Date: Sat, 27 Jan 2024 04:10:25 +0400 Subject: [PATCH] [v0.0.9] Trying to fix additive loading --- Runtime/Operations/SceneLoadingOperation.cs | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Runtime/Operations/SceneLoadingOperation.cs b/Runtime/Operations/SceneLoadingOperation.cs index 2279911..083c57e 100644 --- a/Runtime/Operations/SceneLoadingOperation.cs +++ b/Runtime/Operations/SceneLoadingOperation.cs @@ -31,7 +31,7 @@ async Task ILoadingOperation.Load(Action onProgress, CancellationToken to var operation = SceneManager.LoadSceneAsync(nextScene.handle, _sceneDefinition.LoadMode); operation.allowSceneActivation = true; - while (nextScene.isLoaded == false) + while (operation.isDone == false) { onProgress?.Invoke(operation.progress); await Task.Yield(); diff --git a/package.json b/package.json index ab7b6c0..47d8a95 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "com.depra.scenes", - "version": "0.0.8", + "version": "0.0.9", "displayName": "Depra.Scenes", "description": "", "unity": "2022.3",