Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/smidgens/unity-console
In-game console for Unity
https://github.com/smidgens/unity-console
not-affiliated-with-harry-nilsson smidgenomics unity unity-console unity-plugin
Last synced: 2 months ago
JSON representation
In-game console for Unity
- Host: GitHub
- URL: https://github.com/smidgens/unity-console
- Owner: Smidgens
- License: mit
- Created: 2022-07-15T12:51:49.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-11-22T13:21:06.000Z (about 2 years ago)
- Last Synced: 2024-10-10T10:07:45.107Z (2 months ago)
- Topics: not-affiliated-with-harry-nilsson, smidgenomics, unity, unity-console, unity-plugin
- Language: C#
- Homepage:
- Size: 574 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
![](/.github/banner.png?raw=true "")
![](/.github/gallery.png?raw=true "")# âšī¸ 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**
* [ ] Support binding methods with optional parameters.
* [ ] Support implicit type casting for arguments when available (float -> double etc.)
* [ ] Support custom input parsers to handle custom types as command arguments.
# đĻ Install
1. Open Package Manager
2. Paste GitHub URL:\
`https://github.com/Smidgens/unity-console.git#`
# đ Use
## Basic Setup
1. Create a Console asset: `Create->Console->Console`.
2. Add a `Console GUI` script to your scene and drop a reference to the asset into it.
## Binding Commands
### đŖ Option 1: Script
1. Add a Console Command script to your scene.
2. Add a reference to a console asset.
### đĩ Option 2: Asset
1. Create a Console Command asset in your project: `Create->Console->Console Command`.
2. 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`.