Developer Console screenshot 1
J

Publisher

jitspoe

Developer Console

Tools
Console Command Debugging Development Testing Input Signals Parameters

Console that can drop down with the ~ key, as seen in games like Quake, that allows developer to add commands to quickly test things. Simply use "Console.add_command("command_name", , )" to add console commands! Parameters are passed in as strings. Other useful settings: Console.enable_on_release_build Console.pause_enabled Console.enabled And signals you can connect to: console_opened console_closed console_unknown_command

godot-console

Dev console addon for Godot engine.

Simply drop the addons directory into your godot project, go to the project settings, plugins, and enable "Console".

After you've done that, you can add console commands from any class.

Example:

func _ready():
  Console.add_command("hello", my_hello_function)

func my_hello_function():
  Console.print_line("Hello, world!")

You can also specify up to 3 parameters, which will be passed in as strings:

  Console.add_command("param_test", param_test_function, 1) # 1 specifies 1 parameter

func param_test_function(param1 : String):
  Console.print_line("Param passed in: %s" % param1)

The "quit"/"exit" command is implemented by default.

By default the console does not pause the tree. If this is undesirable behaviour to you, you can change that behaviour by setting the pause_enabled variable accordingly.

func _ready_():
  Console.pause_enabled = true
  # Console will now pause the tree when being opened

You can also specify font size in the console:

# Set font size to 18
Console.font_size = 18 

# Reset to default font size
Console.font_size = -1

If you prefer to use C#, you might want to check out the C# console by Moliko here: https://github.com/MolikoDeveloper/Csharp-Console-Godot