How to override the on clicked event in derived widget bp?

Hi,

I have a user widget A that has a button with on clicked event. Then I created a blueprint B based on A and wish to override the execution steps triggered by the on clicked event. However, it always use the A version and none of the steps in B are executed.

Event graph of A:

Event graph of B:

Where goes wrong?

Is overriding the event execution correct way? Are there better practice to achieve my intention?

Thanks for your time!

Then I created a blueprint B based on
A

How did you do that? Did you reparent the widget?

  • Widget A:

  • Widget B, reparented to A:

  • B’s hierarchy is empty
  • added B to viewport and it prints B

Thanks for your reply!
I created a new widget B and manually reparent it to A and it worked.
But do you know why the widget created using “right click->create new blueprint->pick parent class->choose A” not working? I checked all the settings I can find of the widget B created by these two methods, everything is same.

Tried on 4.24 and all worked. Not working on 4.26.2, should be a bug.

If you mean this, then this works OK on my end, too. My B widget can do this after having its parent class picked as A, overriding A’s event:

I’m on 4.25, though.

Nasty. Gonna skip right to 4.27 then as this would undo my entire interface. Thanks for tracking it down!