Publisher | simonsanchezart |
---|---|
File size | 47.05kB |
Number of files | 7 |
Latest version | 1 |
Latest release date | 2024-10-04 06:53:13 |
First release date | 2024-10-04 06:53:13 |
Supported Unity versions | 2018.4.2 or higher |
Jeringa provides custom attributes to automatically fetch dependencies from different parts of your scene hierarchy without manually managing references. Simply mark fields in your scripts with attributes like [FromSelf], [FromType], [FromParent], and more, to define where dependencies should come from, and call Injector.Inject() to resolve them.
Key features:
- [FromSelf]: Fetch components from the same GameObject.
- [FromType]: Get components from any object of a specific type.
- [FromParent] and [FromChild]: Retrieve dependencies from parent or child objects in the hierarchy.
- [FromAny]: Access components from anywhere in the scene.
- [FromSibling]: Fetch dependencies from sibling GameObjects.
- Supports MonoBehaviour and non-MonoBehaviour classes (with some limitations).