Mechanism for finding dependencies
Last updated
Last updated
This explains the mechanism for finding dependencies of MonoBehaviour fields.
It searches for assignable objects (dependencies) to MonoBehaviour fields within a specified scope.
What is Scope?
Scope is the range in the hierarchy view where dependencies are searched.
❗ To zoom a image in, press Ctrl + scroll the mouse wheel.
The Ways to Specify Scope:
The default scope can be set in the Injector Window.
How to access the Injector Window:
(1) Advanced button
(2) Menu: Window/Santutu/Dependency Injector Window
2. Methods to set individual scopes for MonoBehaviour fields:
(1) In the Dependency Injection Results Window
❗ When the scope is modified in the editor window, the change is permanently saved and applied with the highest priority. If the modification is removed, it reverts to the default value or atttibute value.
(2) Using attributes in code
3. Also please refer to filter page.