hadashiA / VContainer

The extra fast, minimum code size, GC-free DI (Dependency Injection) library running on Unity Game Engine.
https://vcontainer.hadashikick.jp
MIT License
1.88k stars 163 forks source link

GameObjects generated within RootLifetimeScope are not visible on the hierarchy. #623

Closed KazukiKuriyama closed 6 months ago

KazukiKuriyama commented 7 months ago

If I create a game object from a Prefab in a RootLifetimeScope, it will not be visible on the Hierarchy when the game starts. (It was not included in DontDestroyOnLoad either.) For example, the following method.

        builder.RegisterComponentInNewPrefab(somePrefab, Lifetime.Scoped).DontDestroyOnLoad();

The dependency solution itself seems to be working. Can I make this game object visible?

KazukiKuriyama commented 6 months ago

対応頂きありがとうございます!