godot exit func code example
Example 1: godot exit func
# Use "return"
func _ready():
if some_condition:
print("true")
else:
return # breaks execution of the entire function
print("test")
Example 2: godot close game
get_tree().quit()