A runtime developer console for Unity that runs commands for rapid debugging and testing.
- Supports commands on fields, properties, and methods.
- Use commands in a static context and Unity Object instances.
- Quick setup and easy command definitions using the
[VespaCommand]
attribute. - Set aliases for commands to shortcut frequently used commands
- Preview values and command names in console with autofill values
- Execute multiple commands in a single input using
;
symbol
- Install the package via Git in the Package Manager
- Ensure you have Git installed and your Unity Version supports Git package manager imports (2019+)
- In Unity go to
Window -> Package Manager
- Press the + icon at the top left of the Package Manager window
- Choose "Add package from Git URL"
- Enter the following into the field and press enter:
- Tip: You can append a version to the end of the Git URL to lock it to a specific version such as
https://github.com/Orange-Panda/VespaIO.git#v2.0.0
- Tip: You can append a version to the end of the Git URL to lock it to a specific version such as
https://github.com/Orange-Panda/VespaIO.git
- Create a Settings file using
Tools -> VespaIO -> Select Console Settings
- Import the
Developer Console
sample from this package in the Package Manager.- This imports a default implementation of the developer console for the Unity UI system using TextMeshPro.
- Run your application and press the
`
key to view the console.- Try out some of the native commands such as
help
,scene
,quit
.
- Try out some of the native commands such as
- Add a command to your code by adding the
[VespaCommand]
attribute to it.- Example:
[VespaCommand("get_position", "Get the position of this object")]
- Defines a non-cheat command that prints the player position. - Example:
[VespaCommand("item_grant", "Grant and item to the player", Cheat = true)]
- Defines a cheat command that grants an item to the player. Cheat commands require permanently enabling cheats for a session. - Example:
[VespaCommand("big_secret", "Don't tell anyone...", Hidden = true)]
- Define a secret command that is hidden from the help manual and autofill. Hidden commands are not inherently cheats.
- Example:
- Enter play mode and try out your commands!
- You are ready to go with VespaIO in your project!
- Use the Issues or Discussions of this GitHub repository for support.
This package is developed by Luke Mirman.
- Hive icon used in the logo is provided by Google Fonts under the Appache 2.0 license.
- Lato font in the logo is provided by Google Fonts under the Open Font License.
- JetBrains Mono Font included in the default developer console is provided by JetBrains under Open Font License.