Hello,
i did this for my project and some people might find this useful.
- Creating a widget reference. (Event begin play → Create myWidget → Set myWidget Variable)
- Your Key(escape for example) → ShowWidget( my function ) → attach the myWidget variable to the function
- Done
How it works ?
The “Widgets” array holds all widgets that need a “cursor”. Like Menus, Navigations etc.
After adding and removing a widget from the viewport, it checks if the array is empty.
If the array is empty = disable mouse cursor. If the array is NOT empty = show cursor.
INFO
If you want to focus your cursor (so you don’t need to click 2x on a button) you must create a focus.
I didn’t include this in the 1 screenshot because some people might have different uses for it
But i got you mate