Skip to content

Commit

Permalink
ScopedSceneEntryPoint now ensure that autoRun set to disabled when Li…
Browse files Browse the repository at this point in the history
…fetimeScope activation.
  • Loading branch information
mackysoft committed Nov 6, 2023
1 parent 4ca58c1 commit 5fa17f4
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 5fa17f4

Please sign in to comment.