Customizing the Mouse Cursor


You want to use a custom mouse cursor.


Setting the mouse cursor is done with Input.set_custom_mouse_cursor(). All you need is a texture to use. The texture must be no larger than 256x256 pixels in size.

For example, to use the following image:

alt alt

And set its hotspot to the center:

extends Node2D

func _ready():
            Vector2(64, 64))

The second parameter sets which system cursor to replace. See the Input docs for the full list.