When I press the button(Item1) the Event Dispatcher fires up fine. But when I call from the child (InventorySlot), nothing happens.
Below is my InventorySlot Widget Blueprint.
Please help, let me know what i’m doing wrong?
All I want to do is, if I click a colored button it sends the color to one of the bottom buttons. I could make this work if I just created the widget as a single widget but the reason I divided it up was so that I could reuse the “InventorySlot” widget when the actual game plays.
Perhaps instead of calling the Event Dispatcher from the child widget, you could bind the desired event in the parent widget. You can do this by getting the child widget, then getting the required button (which seems to be Ability1), and using the node Bind On Clicked.
Also, using an Event Dispatcher seems unnecessary for what it seems you are doing; they are meant for many events to be bound and called across many different objects. Consider simply binding your item’s button in the inventory (parent), and calling an event/function on your player controller (widget owner) for additional interactions with your game.