Skip to content

Instantly share code, notes, and snippets.

@andrew-wilkes
Created May 18, 2021 09:03
Show Gist options
  • Select an option

  • Save andrew-wilkes/a1e3845df7b4af66566f272e974073d4 to your computer and use it in GitHub Desktop.

Select an option

Save andrew-wilkes/a1e3845df7b4af66566f272e974073d4 to your computer and use it in GitHub Desktop.
Global code to quit Godot game
func _input(_event):
if Input.is_action_just_pressed("ui_cancel"):
get_tree().quit()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment