Generate child scope via scene or prefab
#
How to make an Additive scene a child#
How to set the parent when loading a sceneYou can parent it by specifying a LifetimeScope
object before loading the scene.
LifetimeScope is a GameObject, so you can also search from the scene.
#
How to add additional registers to the next sceneOften, you may want to add additional Registers to the loaded scenes.
For example, when context is finalized after assets are loaded asynchronously.
In that case you could use:
#
How to pre-set the parent in the InspectorLifetimeScope
can be serialized by specifying the type of parent.
In base scene.
In additional scene.
caution
When the scene becomes "isLoaded" state, an error will occur if the Parent Type set in the inspector is not found.