An easy-to-use, simple in-game console inspired by the console used in Valve Source 1.
Documentation is a work-in-progress. Feel free to open an issue about it, I will then prioritize and deliver it ASAP! (= 1-2 days, or less)
- Cross-language scripting: Add & call console commands from GDScript or C#
- Helpful game-agnostic commands
- Source-style autocompletion
- When adding console commands from GDScript, lambdas aren't currently supported - this might change in future versions of Godot.
- Clone the repo to 'res://addons/'
- Open Project -> Project Settings -> Plugins
- Enable the plugin
- Download a release that supports your version of Godot
- Extract the .zip file
- Move the resulting folder within 'res://addons/'
- Open Project -> Project Settings -> Plugins
- Enable the plugin
C#
When adding commands, you should always use the following template.
If your Callable doesn't contain string[] args
in it's parameters, result is undefined behavior.
// You can call this from anywhere
Console.AddCommand("my_command", Callable.From((string[] args) => {
// Command code goes here
}),
"This is an optional help description. It is shown upon running 'help my_command' in the console");
todo: add code examples & pictures of running via the console window
This addon is being developed as per my own needs.