Answers for "godot exit program"

1

godot exit func

# Use "return"

func _ready():
    if some_condition:
        print("true")
    else:
        return # breaks execution of the entire function
    print("test")
Posted by: Guest on July-02-2020
2

godot exit game

get_tree().quit()
Posted by: Guest on November-27-2020

Browse Popular Code Answers by Language