can't hide cursor

so my problem is pretty simple, i made it so that when you clic a button it hides a panel and the cursor

this is inside the widget

the problem is that when i clic the button it hides the panel but my cursor is still visible, i have to clic twice for it to dissapear.

i also have an event that gets called with the keyboard, this event shows the hidden panel and the cursor, i have the same problem as before but now i have to clic twice the button to hide the panel and then again another time to hide the cursor

this is inside the player controller

i tried playing inside the viewport, on standalone and even packaging the game

For as long as the cursor is over a widget, it’s the widget that controls cursor’s visibility, not the controller. In your case, you’re hiding the Selection Panel of the Waiting widget. The cursor is still over the widget Waiting and it’s showing the cursor. Click outside of the widget after hiding, the cursor will disappear because the widget will lose focus (unless you made it full screen, that is).

Each widget can control the visibility of the cursor separately:

252700-untitled.png

After asking the controller to hide it, ask the widget to do the same:

252711-cap2.png

Everyone says this should work, but I can’t get it to work when the input mode is game & ui in 4.24. :frowning:

Seems to work fine here. Can you show the widget hierarchy and describe which element is misbehaving? And perhaps what you’re trying to achieve - it often helps with suggesting a tangible solution.

Cheers.