This phenomenon occurred in the latest version 1.16.0.
How to reproduce:
Lay the scene over the hierarchy in this way before the game is played.
Place a LifetimeScope in each scene and associate it with a parent-child relationship setting.
Register EntryPoints with ChildLifetimeScope.
using VContainer;
using VContainer.Unity;
public sealed class ChildLifetimeScope : LifetimeScope
{
protected override void Configure(IContainerBuilder builder)
{
builder.RegisterEntryPoint();
}
}
```cs
using UnityEngine;
using VContainer.Unity;
public sealed class EntryPointTest : IStartable
{
void IStartable.Start()
{
Debug.Log("Startable!");
}
}
This phenomenon occurred in the latest version 1.16.0.
How to reproduce:
Lay the scene over the hierarchy in this way before the game is played.
Place a LifetimeScope in each scene and associate it with a parent-child relationship setting.
Register EntryPoints with ChildLifetimeScope.
public sealed class ChildLifetimeScope : LifetimeScope { protected override void Configure(IContainerBuilder builder) { builder.RegisterEntryPoint();
}
}