Unity Event Bus: Simplify Messaging 🎯

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

КОМЕНТАРІ • 11

  • @freedomcoding
    @freedomcoding  3 дні тому +1

    Do you want to learn more about event bus, add queues, priorities and IDs to your events? If so, take a look at this! - www.patreon.com/posts/118963517
    I will also be intruducing channel memberships soon, so the videos for supporters will also be available here on UA-cam!

  • @SilenusParis
    @SilenusParis 2 дні тому

    Best tutorial on the event bus that I'v seen !
    Keep it up !

  • @yellobus
    @yellobus 3 дні тому

    Keep up the good work man! Also Merry Christmas and Happy New Year! :)

    • @freedomcoding
      @freedomcoding  3 дні тому +1

      Thanks, I will! Merry Christmas and Happy New Year to you too.

  • @ardhenismuhammadaflah7818
    @ardhenismuhammadaflah7818 3 дні тому

    FIRST COMMENT, AND I SUBSCRIBED❤

  • @SLthenus
    @SLthenus 3 дні тому +2

    i also create event bus without other class need to call the event bus. Use scriptable object, and drag n drop func on event in the same game object. Then drag n drop SO to unity event you want to execute the action. This is Absolute modular.

    • @freedomcoding
      @freedomcoding  3 дні тому

      This sounds like an event channel system. I made something similiar - ua-cam.com/video/nJkYCU8Qe8o/v-deo.html

  • @alaslipknot
    @alaslipknot 3 дні тому +1

    Don't over use this, it is a NIGHTMARE pattern to debug. imo it should not be used at all for "standard game logic" (like level up),
    you can use this for a notification system or something more generic.
    The problem you described in the beginning can simply be solved with a proper component composition approach.
    (also the errors are event bus error, i know its irrelative but it was funny :p)

    • @freedomcoding
      @freedomcoding  3 дні тому

      I agree that event bus is hard to debug. Still in some cases it can be very useful. Thanks for sharing your experience!