Unity Package: A debug command console that can be used at runtime and easily extendable.
How to install
This package can be installed through the Unity
Open up the package manager
Window/Package Manager and click on
Add package from git URL....
Paste in this repository’s url.
Add and the package will be installed in your project.
How to use
You can create a new console and add it to your scene by right clicking in the hierarchy
Only one command console should exist within any given scene.
EventSystem must also be present in your scene.
To open the console at runtime use the tilde key
~. This can be disabled in the inspector for custom input remaping.
Custom commands can be written for the command console.
A small list of commands have already been written as examples. Some command examples include print, load scene and unload scene. They can be found at
Runtime/Scripts/Commands starting at the root of this package.
To create a custom command create a new script and extend the ICommand interface. The console manager will automaticly detect the script and add it to the command list at runtime.
||This is the main name/label of the command you are creating.|
||This is an array of args to let the user know what kind of data to put. Ex. int or string.|
||This is the executed code when the command has been activated. Commands are activated by running them in the console. Args should match suggested args correctly.|