# How to merge multiple event dispatcher?

**URL:** <https://forums.unrealengine.com/t/how-to-merge-multiple-event-dispatcher/2007863>\
**Category:** Blueprint\
**Tags:** event-dispatcher, unreal-engine, Widget, question\
**Created:** [September 6, 2024, 7:43am UTC](https://forums.unrealengine.com/t/how-to-merge-multiple-event-dispatcher/2007863 "2024-09-06T07:43:23Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![turbotanaka](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@turbotanaka](https://forums.unrealengine.com/u/turbotanaka)\
**Post date:** [September 6, 2024, 7:43am UTC](https://forums.unrealengine.com/t/how-to-merge-multiple-event-dispatcher/2007863/1 "2024-09-06T07:43:23Z")

</div>

I want to send events from multiple child widgets of the same class to a single parent widget.  
Normally, you can bind multiple objects that hold event dispatchers from target.  
However, for widgets, assignments don’t work because each one acts as an independent event.  
This can be very inconvenient if you have a lot of widgets.  
Can these events be merged?

 ![Screenshot](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/1/d/11de447ccfad7d7bb402d4ed2800e843ff816f02.png)

---

<div class="post-metadata">

**Author:** ![Auran131](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Auran131](https://forums.unrealengine.com/u/Auran131)\
**Post date:** [September 6, 2024, 3:03pm UTC](https://forums.unrealengine.com/t/how-to-merge-multiple-event-dispatcher/2007863/3 "2024-09-06T15:03:03Z")

</div>

ive done that before, are you saying the problem is the multiple pins? if so just make an array and loop over them

---

<div class="post-metadata">

**Author:** ![Husky211](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/husky211/32/1193324_2.png) [@Husky211](https://forums.unrealengine.com/u/Husky211)\
**Post date:** [September 6, 2024, 7:16pm UTC](https://forums.unrealengine.com/t/how-to-merge-multiple-event-dispatcher/2007863/4 "2024-09-06T19:16:53Z")

</div>

hello chat GPT?

---

<div class="post-metadata">

**Author:** ![Husky211](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/husky211/32/1193324_2.png) [@Husky211](https://forums.unrealengine.com/u/Husky211)\
**Post date:** [September 6, 2024, 7:47pm UTC](https://forums.unrealengine.com/t/how-to-merge-multiple-event-dispatcher/2007863/5 "2024-09-06T19:47:58Z")

</div>

instead of use a dispacher u can create a BPinterface and add that to the main widget, and in every child widget call the function that u create un the Interface

---

<div class="post-metadata">

**Author:** ![turbotanaka](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@turbotanaka](https://forums.unrealengine.com/u/turbotanaka)\
**Post date:** [September 7, 2024, 4:49am UTC](https://forums.unrealengine.com/t/how-to-merge-multiple-event-dispatcher/2007863/6 "2024-09-07T04:49:37Z")

</div>

That was a bit of a roundabout question.  
In short, I would like to use the method shown above the image, but (i don’t know why) it doesn’t work on widgets and gets converted into individual events as shown below the image.  
So if you can get the method above to work, that would be best.

> bonnie5689

I believe what you’re referring to is passing the parent information to the children to run a function directly.  
This certainly works, but passing the information to all the children is a pain.

> Auran13

You can connect multiple targets to the Target pin of a function, and they will automatically be looped.  
This is faster than a For Each Loop.

> Husky211

The interface is tedious to manage, so I try not to use it unless absolutely necessary.  
If this is the only way then I have no choice, but I would like to know if there are other way.  
That means a way to communicate only between parent and child widgets.

---

<div class="post-metadata">

**Author:** ![Monz](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/monz/32/1194614_2.png) [@Monz](https://forums.unrealengine.com/u/Monz)\
**Post date:** [September 7, 2024, 5:31am UTC](https://forums.unrealengine.com/t/how-to-merge-multiple-event-dispatcher/2007863/7 "2024-09-07T05:31:42Z")

</div>

Hi!

The approach at the top half of the image should work as expected, you only need to remove the events added manually at the bottom half of the image.

> …and gets converted into individual events as shown below the image.

These individual events were added by selecting each UW\_WeaponAssignSlot \> Events \> Clicking the event name, which adds the event to the graph, correct?

---

<div class="post-metadata">

**Author:** ![turbotanaka](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@turbotanaka](https://forums.unrealengine.com/u/turbotanaka)\
**Post date:** [September 7, 2024, 6:53am UTC](https://forums.unrealengine.com/t/how-to-merge-multiple-event-dispatcher/2007863/8 "2024-09-07T06:53:17Z")

</div>

Yes, i thought should work as expected too.  
But it doesn’t work in the widget.  
The events work so the event dispatcher is definitely working.

> These individual events were added by selecting each UW\_WeaponAssignSlot \> Events \> Clicking the event name, which adds the event to the graph, correct?

Yes. I added these event in the same way as “Press Button” for a button.

---

<div class="post-metadata">

**Author:** ![Monz](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/monz/32/1194614_2.png) [@Monz](https://forums.unrealengine.com/u/Monz)\
**Post date:** [September 7, 2024, 7:06am UTC](https://forums.unrealengine.com/t/how-to-merge-multiple-event-dispatcher/2007863/9 "2024-09-07T07:06:57Z")

</div>

Let’s assume it’s a bug, you could remove the UW\_WeaponAssignSlot widgets you added, compile blueprint, add them again, then bind their events on BeginPlay and test using PrintString.

---

<div class="post-metadata">

**Author:** ![turbotanaka](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@turbotanaka](https://forums.unrealengine.com/u/turbotanaka)\
**Post date:** [September 7, 2024, 7:24am UTC](https://forums.unrealengine.com/t/how-to-merge-multiple-event-dispatcher/2007863/10 "2024-09-07T07:24:38Z")

</div>

Wow I can’t believe it…This worked perfectly!  
I had assumed that the event dispatcher behaved differently for widgets, but I was wrong.

Thank you for your help!

---

<div class="post-metadata">

**Author:** ![Monz](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/monz/32/1194614_2.png) [@Monz](https://forums.unrealengine.com/u/Monz)\
**Post date:** [September 7, 2024, 7:26am UTC](https://forums.unrealengine.com/t/how-to-merge-multiple-event-dispatcher/2007863/11 "2024-09-07T07:26:13Z")

</div>

I’m glad it worked, good luck with your project!

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [October 7, 2024, 7:26am UTC](https://forums.unrealengine.com/t/how-to-merge-multiple-event-dispatcher/2007863/12 "2024-10-07T07:26:56Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
