Skip to content

Resolver

Vladislav Kantaev edited this page Mar 15, 2021 · 12 revisions

Resolver is a component that injects all the dependencies into its child components. You can specify where to get the dependencies from via the DependencySource setting.

Resolver follows the injection rules.

Editor

Resolver has a custom editor, allowing to see all the dependencies it will be able (or not) to resolve:
Resolver Inspector

By default, Resolvers have negative execution order. This setting ensures injection takes place before Awake methods of MonoBehaviours. If needed, the execution order can be changed in the Project Settings/Script Execution Order menu.