extends Node3D @onready var cursor := load('res://assets/transparent_cursor.png') func _ready(): Input.mouse_mode = Input.MOUSE_MODE_CONFINED Input.set_custom_mouse_cursor(cursor) func _input(event): if event.is_action_pressed("ui_cancel"): Input.mouse_mode = Input.MOUSE_MODE_VISIBLE elif event is InputEventMouseButton: Input.mouse_mode = Input.MOUSE_MODE_CONFINED