Q:

godot exit func

# Use "return"

func _ready():
    if some_condition:
        print("true")
    else:
        return # breaks execution of the entire function
    print("test")
1
get_tree().quit()
1

New to Communities?

Join the community