OnClicked Event only fires when double clicked.
Hey, i have a issue with the OnClicked Event when i click on a button which is a child of a child .. I explain :
I have a inventory system with a main widget which contain my inventory widget and this inventory widget contain the slots widgets (slots are generated automatically, they are in the Grid Panel) :
Main HUD :
Inventory Widget :
Slot Widget :
The problem is i have to doubleclick on my "Btn_Slot" to launch a "OnClicked" event.
The "ItemIcon" and "TextAmount" are "Self Hit Test Invisible".
I need help and tell me if you want more info about this !
Sounds a bit as if the wInventory was not getting the focus it needs to pass onto the button (when the mouse enters it) - could you try setting the wInventory to SelfHitTestInvisble or Visible? See if that helps.
You can set them to HitTestInvisible here - since you'll never want to click them anyway, saves performance.
answered Jan 20 '18 at 08:13 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here