uzkbwza / godot-devconsole

easy developer console for 2d games

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

godot devconsole

this is a simple developer console for 2d games. you can execute registered commands or evaluate Expressions as the selected node (falling back to the console node).

just drop the addons folder in your project.

Godot_v4.2-beta3_win64_bbdFKvQdBC.mp4

you can register a command from any script.

func hello():
	DevConsole.write_line("hello world!", Color.PURPLE)
	
func _ready():
	DevConsole.register_command(hello)

alternatively, you can do it like this:

DevConsole.register_command(func(): DevConsole.write_line("hello world!", Color.PURPLE), "hello", "example user command.", ["parameter", "names", "go", "here"], "example category")

open the console by pressing the tilde key (~). you can adjust this and other settings in devconsole-autoload.gd. if you add a Node2D to the dev_console_mouse_select group, you can select it directly by using the mouse. currently i dont have any mouse support for 3d objects, but it is probably easy to implement.

About

easy developer console for 2d games


Languages

Language:GDScript 100.0%