Hello, I'm trying to make a custom cursor. I have this code in the main node of the scene:
var arrow = load("res://icons/cursor.png")
func _ready():
set_process(true)
Input.set_custom_mouse_cursor(arrow)
pass
It gives me this error:
0:00:00:0514 - Condition ' texture->get_width() != 32 || texture->get_height() != 32 ' is true.
Type:Error
Description:
Time: 0:00:00:0514
C Error: Condition ' texture->get_width() != 32 || texture->get_height() != 32 ' is true.
C Source: platform\windows\os_windows.cpp:1880
C Function: OS_Windows::set_custom_mouse_cursor
My texture is 16x16, so I'm not sure what's happening. Any help would be greatly appreciated.