ℹ️ Features
- Reflection-based in-game console.
- No extras required - usable with existing code and wireable through inspector.
- Bind commands to methods, fields, or properties.
- Customizable toolbar.
- Includes input and parsing of standard primitive types + common Unity structs (
Vector2/3/4
, Color
...).
- Minimalistic and functional UI (Unity IMGUI).
- 🤞 Reasonably lightweight.
⌛ In Progress
📦 Install
- Open Package Manager
- Paste GitHub URL:
https://github.com/Smidgens/unity-console.git#<version_tag>
🚀 Use
Basic Setup
- Create a Console asset:
Create->Console->Console
.
- Add a
Console GUI
script to your scene and drop a reference to the asset into it.
Binding Commands
🟣 Option 1: Script
- Add a Console Command script to your scene.
- Add a reference to a console asset.
🔵 Option 2: Asset
- Create a Console Command asset in your project:
Create->Console->Console Command
.
- Drop a reference to the command into a console asset.
🟠 Option 3: Attributes
Note: Requires reference to Smidgenomics.Unity.Console
assembly.
🔳 ConsoleCommand
Exposes static method, field, or property to console.
🔳 ConsoleAssembly
Additional options for commands declared in assembly. Also used to filter assemblies based on attribute search settings in console asset.
🔳 ConsoleClass
Additional options for commands declared in type. Includes option for exposing all members automatically.
🔳 HideInConsole
Ignores class member from console when exposing all class members through ConsoleClass
.