How can I get "On Mouse Button Down" in a child widget

Hi

I have a inventory widget containing widget slots but I can’t seem to get On Mouse Button Down event to fire in the widget slot. I have checked the visibility settings but no luck.

I can get the On Mouse Button Down event to fire in the inventory widget no problem, but never in the widget slots

What am I doing wrong?

Inventory Widget:

In the Inventory Slot widget:

It prints Fail or does not Print at all. You say Never Called - just making sure.

Yeah, it never print’s anything, tried putting a breakpoint but nothing happens

  • run the game
  • start the widget reflector

image

  • pick widgets:

image

  • mouse over misbehaving stuff - the slots
  • what do you get?


I have checked the visibility settings but no luck.

These:

image

Should be Not Hit-Testable (Self Only) or Visible

Slot widget → we will need at least 1 element that is set to Visible

Could you confirm that’s the case?


And the MouseDown should be closer to:

Otherwise it would always Print Fail - but we need to get it to work in the first place, ofc.

Not really sure what information i got from the widget reflector

Yes, confirmed they are now all “Not Hit-Testable (Self Only)”

Could we see the slot hierarchy and what its root’s is set to in regards of Visiblity?

The root is set to visible, i’ve tried all kinds of visibility settings for the different elements

1 Like

Just to confirm

image

image

image

Is this the border we’re hitting? Is it called 19 on your end, in its Details panel?

I think so, but I have set it to be Not Hit-Testable (Self Only)

I just tried creating a new super simple test inventory widget with similar setup and that works fine, I get the On Button down event in the child slot widget with no problem. So I know it works at least.

I think I will just start over and create a new widget
Thanks for the help

1 Like

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