Godot Version
Latest stable
Question
I’m trying to change the mouse cursor upon entering the button’s area but for some reason it doesn’t work. The prints work fine and the same line of command works on other scenes. This is in a subviewport so it might be because of that I’m not sure.
extends Button
signal spin_bottle
func _on_pressed() -> void:
spin_bottle.emit()
func _on_mouse_entered() -> void:
Input.set_default_cursor_shape(Input.CursorShape.CURSOR_POINTING_HAND)
print("in")
func _on_mouse_exited() -> void:
Input.set_default_cursor_shape(Input.CursorShape.CURSOR_ARROW)
print("out")