How to automaticly handle widgets in the viewport including cursor?
Hello, i did this for my project and some people might find this useful.
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.
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 :)
Follow this question
Once you sign in you will be able to subscribe for any updates here