# Loading componen widget (interactive) with mouse and returning a value?

**URL:** <https://forums.unrealengine.com/t/loading-componen-widget-interactive-with-mouse-and-returning-a-value/464240>\
**Category:** UI\
**Tags:** hud, click-event, hud-class, unreal-engine, Widget, mouse-click, question\
**Created:** [April 25, 2020, 2:39pm UTC](https://forums.unrealengine.com/t/loading-componen-widget-interactive-with-mouse-and-returning-a-value/464240 "2020-04-25T14:39:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hedgie17](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@hedgie17](https://forums.unrealengine.com/u/hedgie17)\
**Post date:** [April 25, 2020, 2:39pm UTC](https://forums.unrealengine.com/t/loading-componen-widget-interactive-with-mouse-and-returning-a-value/464240/1 "2020-04-25T14:39:09Z")

</div>

I’m having difficulty figuring this out… Let’s say that the player can create an actor (cube let’s say) and then places it in the world. When the player clicks on this actor, a HUD widget comes up prompting the player what to do. There are different options. I was able to pass the click with an intractable widget component but somehow I need a response back on which button was clicked.

Alternative bonus question: How would I pass information through to the hud widget if I wanted to?

Thank you for reading!

---

<div class="post-metadata">

**Author:** ![hedgie17](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@hedgie17](https://forums.unrealengine.com/u/hedgie17)\
**Post date:** [April 25, 2020, 8:00pm UTC](https://forums.unrealengine.com/t/loading-componen-widget-interactive-with-mouse-and-returning-a-value/464240/2 "2020-04-25T20:00:44Z")

</div>

I figured it out. The answer was actually **Event Dispatchers** I learned about how to use them and all is well. 🙂
