# \[ REPOST \] Override Child Widget Function/Event?

**URL:** <https://forums.unrealengine.com/t/repost-override-child-widget-function-event/486376>\
**Category:** UI\
**Tags:** button, override, unreal-engine, question\
**Created:** [July 19, 2021, 2:15am UTC](https://forums.unrealengine.com/t/repost-override-child-widget-function-event/486376 "2021-07-19T02:15:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_3ad9ae12](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_3ad9ae12](https://forums.unrealengine.com/u/anonymous_user_3ad9ae12)\
**Post date:** [July 19, 2021, 2:15am UTC](https://forums.unrealengine.com/t/repost-override-child-widget-function-event/486376/1 "2021-07-19T02:15:18Z")

</div>

Hi Unreal Community!

For a piece of UI I’m making (I’ll call it “Widget1”), I want it to have 3 child widgets, all of which inherit from a “HUD\_Button” class that has some built-in functionality I want. However, I also want each child to create a different menu when it is clicked. Is it possible to override the OnClicked, OnPressed, etc. functions of the button widget from each child widget, in Widget1? If not, is it possible to override a custom event? (which I could set up to run on the button event)

Link to the original thread:

[https://answers.unrealengine.com/questions/1040949/view.html](https://answers.unrealengine.com/questions/1040949/view.html)

To clarify, I’m asking: is there a way to override (in “Widget1”) a function that is defined on the source widget of the “child” in the hierarchy? e.g. I have a function called “ButtonPressed”, called when the button within the source widget is pressed, the behavior of which I want to customize for each instance of the source widget within “Widget1”.

(I’m _ **not** _ asking about inherited widget classes, but about instances of a widget class that are “parented” in the hierarchy)

---

<div class="post-metadata">

**Author:** ![Kehel18](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kehel18](https://forums.unrealengine.com/u/Kehel18)\
**Post date:** [July 19, 2021, 4:07pm UTC](https://forums.unrealengine.com/t/repost-override-child-widget-function-event/486376/2 "2021-07-19T16:07:48Z")

</div>

Hello! Events are not overrided, they can be bound to smth. You have several ways to do that, one with events can be like that:

[In parent widget] Create child widget, bind events of child widget to parent method, add child to hierarchy

Just search for Bind nodes for buttons…
