Godot Tool Scripting

Godot Command Palatte

How to write a command that can be run from the Godot Command Palatte:

var command_palette = EditorInterface.get_command_palette()
# external_command is a function that will be called with the command is executed.
var command_callable = Callable(self, "external_command").bind(arguments)
command_palette.add_command("command", "test/command",command_callable)

Written by Jonathan Lewis

Please reach out if you have any questions or suggestions for improvements.