I’m using the widget switcher to switch from a main menu widget to a sub menu but the button I’m using on the widget switcher is overlapping a button I’m using in the other widget I’m switching to. How can I temporarily disable the 1st button so I can then click on the other button? I need to be able to disable the button in the widget BP itself.
You can use widgets SetEnabled and SetVisibility-Nodes to hide/unhide and disable/enable widgets.
When you add a button in a widget where is the setenabled node for that I can’t find it?
If this is the node you mean its not disabling the button
As Stefan said SetEnabled and SetVisibility is what are you looking for, if it doesn’t work maybe that node is never reached/called, debug it with print string please.
Is disabling the only way to prevent a widget from firing code?
I want the widget to act as normal (show a description), just without the ability to actually click. Disabling completely nullifies everything.
No. If you want a button to still be there visually but prevent user from being able to click it, you would set it’s visibility to non-hit testable.
Just keep in mind if this button has, eg. a text child component assigned to it with visibility set to Visible, you will still be able to click said button.
If you want to prevent it from being clicked in this scenario you would use Non-Hit testable (self & children). That way you can keep all child components as “Visible”.
Thank you, @DonBusso !