GDConsole

by takanazwa5

4

GDConsole

A simple godot plugin implementing in-game debug console.

This plugin adds an autoload script that allows creating commands in any script and executing them in the in-game console.
Commands can take arguments and shouldn't crash the game if something fails. Error will be shown in console instead.
Can also be used to print information using GDConsole.print_line, GDConsole.print_warning, GDConsole.print_error.
Works only when ran in the editor or in debug build.

Features

  • History: Commands history navigatable using arrow keys.
  • Autocomplete: Highlights matched command that can be autocompleted using tab.

Installation

  1. Download the latest release
  2. Put the gdconsole folder inside addons folder in filesystem
  3. Enable GDConsole in Project Settings -> Plugins
  4. Plugin is ready to use. Preferences can be adjusted in Project Settings -> General -> GDConsole

GDConsole was made in Godot 4.3 and wasn't tested in any other version.

Usage

Create a command in _ready() or _init() using the autoload:

func _ready():
	GDConsole.create_command(my_func)

func my_func(arg):
	...

Then hit ~ in game to launch the console and run the command.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Version

1.0.1

Engine

4.3

Category

Tools

Download

Version1.0.1
Download Now

Support

If you need help or have questions about this plugin, please contact the author.

Contact Author