Trying to change the mouse to a custom mouse?

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

I want to change the mouse to a custom image without success. What am I doing wrong. My code is below:

Input.set_custom_mouse_cursor(load("res://Graphics/UI/Cursors/InspectCursor.png"), 0)

The above code is placed in the ready() function. Thanks for your help.

:bust_in_silhouette: Reply From: Diet Estus

You are likely getting an error:

0:00:00:0849 - Condition ’ texture->get-width() != 32 || texture->get-height() != 32 ’ is true.

It seems like you must use a 32x32 image for a custom mouse cursor.

If you use another size, you get the above error.