From 5fa17f4526ed4305c3eb69b2a93b346b37b96788 Mon Sep 17 00:00:00 2001 From: hiroya_aramaki Date: Mon, 6 Nov 2023 23:23:30 +0900 Subject: [PATCH] ScopedSceneEntryPoint now ensure that autoRun set to disabled when LifetimeScope activation. --- .../Integration/VContainer/ScopedSceneEntryPoint.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Assets/MackySoft/MackySoft.Navigathena/Runtime/SceneManagement/Integration/VContainer/ScopedSceneEntryPoint.cs b/Assets/MackySoft/MackySoft.Navigathena/Runtime/SceneManagement/Integration/VContainer/ScopedSceneEntryPoint.cs index d6f55c7..478f28f 100644 --- a/Assets/MackySoft/MackySoft.Navigathena/Runtime/SceneManagement/Integration/VContainer/ScopedSceneEntryPoint.cs +++ b/Assets/MackySoft/MackySoft.Navigathena/Runtime/SceneManagement/Integration/VContainer/ScopedSceneEntryPoint.cs @@ -46,6 +46,8 @@ async UniTask EnsureBuildAndInject (CancellationToken cancellationToken) LifetimeScope parentLifetimeScope = await EnsureParentScope(cancellationToken); using (LifetimeScope.EnqueueParent(parentLifetimeScope)) { + lifetimeScope.autoRun = false; + // NOTE: The parent of a LifetimeScope is set on Awake. lifetimeScope.gameObject.SetActive(true); lifetimeScope.Build();