Check out our latest project ✨ OpenChapter.io: free ebooks the way its meant to be 📖

Game Developer Console

An asset by Xanatos
The page banner background of a mountain and forest
Game Developer Console thumbnail image
Game Developer Console thumbnail image
Game Developer Console hero image

Quick Information

0 ratings
Game Developer Console icon image
Xanatos
Game Developer Console

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.

Supported Engine Version
4.4
Version String
0.6.1
License Version
MIT
Support Level
community
Modified Date
9 hours ago
Git URL
Issue URL

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.

README Welcome Image README List commands

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

0 ratings

Your Rating

Headline must be at least 3 characters but not more than 50
Review must be at least 5 characters but not more than 500
Please sign in to add a review

Quick Information

0 ratings
Game Developer Console icon image
Xanatos
Game Developer Console

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.

Supported Engine Version
4.4
Version String
0.6.1
License Version
MIT
Support Level
community
Modified Date
9 hours ago
Git URL
Issue URL

Open Source

Released under the AGPLv3 license

Plug and Play

Browse assets directly from Godot

Community Driven

Created by developers for developers