How to change cursor back to default arrow? set_custom_mouse_cursor(null) not working.

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

For my game I need mouse cursor to change when a button is pressed, and then change back again to default when any other click is performed.

So when the button is pressed I call:


And then when detecting a click I try:


But nothing happens, the cursor still uses the ‘spell_cursor’.

Any ideas on how I could accomplish this?

Thanks in advance!

You will have to add arrow image and use that as default cursor.

Oen44 | 2018-10-17 15:11

Thanks! I’ll use this fix for the time being.

BauRawson | 2018-10-20 12:17

:bust_in_silhouette: Reply From: Zylann

This looks like a bug that was fixed in the future version, because when I test this in Godot 3.1 alpha 1, it works fine.

Ok, great! For the time being I’ll use Oen44’s suggestion and when 3.1 comes out I will roll back the changes.

Thanks :)!

BauRawson | 2018-10-20 12:17