Mouse cursor doesnt hide in the game, even while using the lines of code which hide them (more info below)

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By godotisgreat

I have been working on an fps game and i wanted to hide the cursor while in debug/playing the game. Ive tried using the following lines of code:
Sadly, none of them seem to work. I thought the problem was because i was using GLES2 but even when i switch to GLES3, the same thing happens. I was expecting to find the cursor ‘invisible’. Is there any way i can fix this? Your help is really appreciated!!

:bust_in_silhouette: Reply From: jgodfrey

As documented, this should work fine:


And, does work for me here, using 3.5 on a Windows PC. If that really doesn’t work for you, we probably need more details, such as:

  • What hardware (PC, Mac, …)
  • Are you running from within the editor or is this an exported game?
  • Other important info… (?)

Hi, I am using windows 11 with Intel UHD Graphics
I am running it from the editor, i am following a tutorial on Youtube.
I just recently updated to v3.5.1, but the same issue occurs.
Please let me know if you need more information.

godotisgreat | 2022-09-28 15:18