Async Container Build
VContainer executes pre-processing such as reflection when building a container. To reduce main thread blocking time for your game:
- Set
false
toLifetimeScope.autoRun
- After scene loading, Call
LifetimeScope.Build
manually.
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: