Dependency injection is a powerful programming technique but using it on its own means you may need to supply many dependencies to your classes. Extenject, previously called Zenject, is a free dependency injection framework made specificaly for Unity that will make using dependency injection much more convenient.
Advanced Extenject Tutorial - / 110082337
Project files - / 109837877
👍 Like and 🔔Subscribe for More Unity and C# Tutorials / @freedomcoding
🌟 Support My Work and Unlock Exclusive Content! 🌟
👉 Patreon: / freedomcoding
🎮 Join Our Developer Community!
💬 Discord: / discord
💖 Support Me Financially
☕ PayPal: [email protected]
Website - https://www.freedom-coding.com
Timestamps:
00:00 What Is Extenject (Zenject)?
00:17 What Is Dependency Injection?
00:57 Extenject Setup
01:22 Injecting Dependencies
03:15 Installers
04:38 Bindings
05:48 Contexts
07:21 Scopes
08:11 Bind From Instance
09:33 Bind From Component In Hierarchy
09:57 Lazy Loading
10:38 Binding Interfaces
12:50 Bind When Injected Into
13:31 Injecting Factories
17:45 Instantiating GameObjects