Install Asset
Install via Godot
To maintain one source of truth, Godot Asset Library is just a mirror of the old asset library so you can download directly on Godot via the integrated asset library browser
Quick Information
This Addon provides a flexible in-game developer console system, allowing you to register custom command and execute them during runtime. You can easily add commands with or without parameters, including optional arguments, and provide descriptions and usage examples for each. The console supports toggling visibility, pause the game when opened. The console can be disabled for release builds if not needed. It also include methods to update the settings for the console, such as changing the toggle key or change command colors.The addon is compatible with Godot 4.4 and above, some breaking changes where introduced in version 0.5. and 0.6.. For detailed usage, examples and updates, visible the GitHub repository.
Godot Game Console
This Godot addon will add a game console to your game. This console can be used to run commands on your game.
To learn how to add and remove custom commands please checkout the example script.
I do know there is a addon like this already in development, check it out at the end of this readme. I still wanted to create my own interpretation of this used in games I created. But as I already developed it I decided to make it public and give something back to the Godot developer community.
How to install
To install the addon download the source files and put the "addons" folder on a root level to your project. After that enable the plugin via the Godot plugin menu.
Checkout this part of the Godot documentation
Quickstart
Register a command
Console.register_custom_command("reload", _reload, [], "Reload current scene")
func _reload() -> String:
get_tree().reload_current_scene()
return "reloaded scene"
Unregister a command
Console.remove_command("reload")
Other important Options
## Set toggle key
Console.set_console_key(KEY_F12)
## Hide console
Console.hide_console()
## Show console
Console.show_console()
## Pause game tree if console does open up
Console.should_pause_on_open()
## Disable console completely, can be used to remove it on release builds
Console.disable()
## Enable a disabled console
Console.enable()
Example Project
I added a test and example project to this addon so you can check out the console in action. The example is not much but does show the usage in a really basic manner.
Built in commands
This is a list with build in commands and there purpose
| Name | Description | example |
|---|---|---|
| list_commands | This will list all the built in and custom commands currently available | list_commands |
| clear | Clear the output of the console window | clear |
| man | Get a more detailed description of a command, also including examples if any. Requires the command name as a argument | man clear |
| pause | Pause the game by pausing the root tree | pause |
| unpause | unpause the game by unpausing the root | unpause |
| quit | Close the game, does not work on a web build. | quit |
Thanks to
As this addon is influenced by the godot console addon check it out as well.
This Addon provides a flexible in-game developer console system, allowing you to register custom command and execute them during runtime. You can easily add commands with or without parameters, including optional arguments, and provide descriptions and usage examples for each. The console supports toggling visibility, pause the game when opened. The console can be disabled for release builds if not needed. It also include methods to update the settings for the console, such as changing the toggle key or change command colors.
The addon is compatible with Godot 4.4 and above, some breaking changes where introduced in version 0.5. and 0.6.. For detailed usage, examples and updates, visible the GitHub repository.
Reviews
Quick Information
This Addon provides a flexible in-game developer console system, allowing you to register custom command and execute them during runtime. You can easily add commands with or without parameters, including optional arguments, and provide descriptions and usage examples for each. The console supports toggling visibility, pause the game when opened. The console can be disabled for release builds if not needed. It also include methods to update the settings for the console, such as changing the toggle key or change command colors.The addon is compatible with Godot 4.4 and above, some breaking changes where introduced in version 0.5. and 0.6.. For detailed usage, examples and updates, visible the GitHub repository.