Register MonoBehaviour
Register from LifetimeScope's [SerializeField]#
note
RegisterComponent are similar to RegisterInstance. The only difference is that MonoBehaviours registered with RegisterComponent will be injected even if not Resolved.
Register from scene with LifetimeScope#
note
RegisterComponentInHierarchy always have a Scoped lifetime because the lifetime is equal to the scene.
Register component that Instantiate from prefab when resolving#
Register component that with new GameObject when resolving#
Register component as interface#
Register component to specific parent Transform#
Or find at runtime.
Grouping MonoBehaviour's Registration#
This is the same as:
You can create a group with a specified parent.
This is the same as: