Dependency Injection for Spawning Game Objects after Scene Load | Unity 2018 Tutorial

preview_player
Показать описание
► My Unity 2020 Mini-Course - Make a 2D Platformer Character with State Machines ►
◢◤◣◥◢◤◣◥◢◤◣◥◢◤◣◥

Here's how you make Zenject hook into your game objects spawned after the scene loads so they receive their injection dependencies.

See My Full Software Courses

➣ Also Follow Me On

➣ If you like my videos, you can support the channel directly
Bitcoin: 17Pn5PifFmRkHRAqCZQAom1ZjCiSf7qJjJ
Ethereum: 0x6f2781F382952c8caCDbE99C46F07c265ab59627
Steem: @christutorials
Рекомендации по теме
Комментарии
Автор

Loved the editing <3 :D
But the information was solid and helpful, thanks!

piotr.kaczmarski
Автор

Incredibly helpful, thanks. Was struggling with this earlier this week. The one thing that keeps throwing me off is the idea that you're never directly calling Instantiate anywhere so it becomes a bit obscure when (and if) anything is actually being spawned just by reading the code.

What exactly does PlaceholderFactory do, in this case? In every example I've found it's just an empty method, so what if I need my Factory to actually *do* something (like, say, taking a parameter that determines in which language the Greeting should be created?)

thijsschipper
Автор

Can I spawn GreetingConsumer with different concrete type implemented IGreeting?

BlackteaBEEF
Автор

section "Factory" should be removed from video

alexandr
visit shbcf.ru