Async Container Build
VContainer executes pre-processing such as reflection when building a container. To reduce main thread blocking time for your game:
- Set
falsetoLifetimeScope.autoRun - After scene loading, Call
LifetimeScope.Buildmanually.
For example:
⚠️ Unity dependent features such as builder.RegisterComponentInHierarcky() do not work on background threads.
If this causes an error, use Awake instead.
For example: