Better Dependency Injection For Unity - Extenject

Поділитися
Вставка
  • Опубліковано 6 січ 2025

КОМЕНТАРІ •

  • @yusufduman8737
    @yusufduman8737 6 днів тому

    Thanks a lot for the video. It's really useful and answered all my questions about zenject.

  • @pistoleta
    @pistoleta Місяць тому +1

    Did you consider making a video on VContainer? Extenject support has been discontinuated years ago and seems the industry is tending to go to VContainer. PS: Seriously considerating on becoming supporter

    • @freedomcoding
      @freedomcoding  Місяць тому

      Hi, I will put it on my list and definitely take a look at it sometime. Zenject is still being updated or not? I am glad you like my content this much

  • @freedomcoding
    @freedomcoding  4 місяці тому

    Are you interested in learning📖more about Extenject? Consider supporting me on Patreon and gain access to the extra tutorials📄I make. In the newest one, I will teach you about more advanced features of Zenject like GameObject and project contexts, ScriptableObject and non-MonoBehaviour installers and many others! Check it out 👀 - www.patreon.com/posts/110082337

  • @elarion8701
    @elarion8701 Місяць тому

    Hi! Thank you for video. I have question about Extenject Factories.
    Is it possible to pass prefab to factory?
    For example if we have many enemies with different prefabs but with same logic.
    I'm trying to mix GameObject context, Facades and PrefabFactory but it looks like it's not possible in Zenject.

    • @freedomcoding
      @freedomcoding  Місяць тому

      Hi, I am glad you liked it. That should surely be possible. You can change the first generic parameter of the factory to GameObject and pass in the prefab when calling the function.

  • @SLthenus
    @SLthenus 19 днів тому

    use event bus, you dont need to have scoremanager refference on your player class

    • @freedomcoding
      @freedomcoding  18 днів тому

      I will be working on the tutorial about event bus soon!

  • @PotatoManager420
    @PotatoManager420 4 місяці тому

    It's really handy asset
    But I had to figure out the way on how to use it with DOTS and came up with intermdediate system that runs OnUpdate and checks if injection is complete and only then it passes instances to other systems
    BTW the order execution -9999, which is default in Zenject doesn't guarantee that DOTS will be injected, since DOTS has Baking system IBaker interface which run in editor even before start

    • @freedomcoding
      @freedomcoding  4 місяці тому

      That sounds interesting. Thanks for info!