SCRIPTABLE OBJECTS and EVENTS in Unity

Поділитися
Вставка
  • Опубліковано 19 лис 2023
  • Create event system and events with scriptable objects in Unity.
    ✅ Get my courses with discount:
    👉 Unity 2D Master: www.udemy.com/course/unity2dm...
    👉 Unity Mobile Course: www.udemy.com/course/unitymob...
    👉 Unity Input System with Rebinding: www.udemy.com/course/unity-in...
    👍 Save your time and learn Unity faster
    -------------------------------------------------------
    🔔 Subscribe for more awesome content:
    🔴 / @rootgames
    -------------------------------------------------------
    🟡 Support this channel through donations
    Any amount means a lot and will help grow the channel:
    👉 PayPal: www.paypal.com/paypalme/rootg...
    -------------------------------------------------------
    Social Networks:
    ⭐ Instagram: / rootgamesofficial
    ⭐ Twitter: / rootgamescro
    -------------------------------------------------------
    #scriptableobjects #events #unitytutorial

КОМЕНТАРІ • 10

  • @RootGames
    @RootGames  8 місяців тому

    Events WITHOUT scriptable objects tutorial:
    👉 ua-cam.com/video/70PcP_uPuUc/v-deo.html

  • @letsgoPi
    @letsgoPi 6 місяців тому +1

    Thank you for the video, I was wondering and searching to see if it's possible to add multiple ScrtipableObject events to GameEventListener which each prompt their own unique response. Like making the 'Event' a list that you can add multiple events too, it seems to me that each of those events would generate the same response if I simply turn the 'Event' into a list of events.

  • @fille.imgnry
    @fille.imgnry 2 місяці тому +1

    You now have a dependency between the gameeventlistener object and the ui object. If you remove the ui object, the game will crash. It is probably better to put the listener directly on the ui object. This way both the invoker and the listener of the event can be removed and added without breaking the game. 🎉

  • @superdahoho
    @superdahoho 2 місяці тому

    thank you for the great video! is it possible to do this with c# events instead? I heard unity events can be 10x slower

    • @RootGames
      @RootGames  2 місяці тому

      you can check my other tutorial about events.

    • @superdahoho
      @superdahoho 2 місяці тому

      @@RootGames oh I meant to say WITH scriptable object events with c# events.

  • @krisztianszabo3588
    @krisztianszabo3588 5 місяців тому +1

    How can I make this system able to pass parameters?

    • @rafarodriguez4765
      @rafarodriguez4765 3 місяці тому +1

      Add a Parameter to the function to reproduce in the Listener, and automatically you will have one slot to drag the component of the parameter. Limited to only one in Serialized UnityEvents

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

    Why not just fire c# events right from scriptable object? It's easier to implement and understand rather than your method with additional GameEventListener script

  • @stegameslive7236
    @stegameslive7236 5 днів тому

    You tutorial is wrong. I got errors.