Command Palette

Lately, I have been working on adding a Command Palette window to Unity’s Editor.

For those of you who don’t know what a Command Palette is, it is a window with a single input field that shows a series of available commands based on the text on the input field. With it, you can basically choose one of those commands and it will execute, allowing you to do some complex tasks just by typing the right command name.

I have put my efforts to make mine work, look and feel just the same as that in other softwares, like Sublime Text’s, Atom’s or Visual Stuido Code’s. And these are my results:Sin título

Right now, these are its features:

  • Command suggestion based on the input.
  • Auto completion.
  • Support for commands with arguments.
  • Support for overloaded commands.
  • Support for custom argument parsers.
  • And, of course, support for adding custom commands.

Actually, custom commands can be added extremely easily and it supports methods with up to 10 argumnets and absolutely ANY type of argument; as all the magic happens behind the scenes through the magic of reflection.

After finishing a little ToDo list, I am planning on releasing this on the Asset Store (most probably for free) and opensourcing it. In fact, there’s already a working version on my git page.