Simple Keybindings
A downloadable asset code for Windows
This project aim to provide an barebone but useable keybindings system that could be easily implement into short unity games.
Pros:
- Contains only 2 C# script.
- Simple to setup.
- Using only unity built-in stuff.
- Has been used in Unity 2019 and above.
- Keycode are variable so harder to make mistake than string.
Cons:
- Added more keybind by edit the KeyManage.cs script itself.
- Only been tested on Keyboard & Mouse.
- Action are just keycode variable so it very restricted.
- Relied on C# reflection system.
- Loop through all input when change keybind.
- Only support one key per action.
- Does not save when game close.
- Use the old input system.
- Does not support "blank" keybind.
Scripts: (gist)
- Key Manager - Where action variables are stored.
- Key Binder / TMP- Select which UI will bind which action.
- Usage Sample - Sample of when using an action's key.
| Status | Released |
| Category | Assets |
| Author | Huntrt |
| Made with | Unity |
| Tags | Graphical User Interface (GUI), Open Source |
| Code license | Unlicense |
| Asset license | Creative Commons Zero v1.0 Universal |
| Average session | A few seconds |
| Inputs | Keyboard, Mouse |
| Accessibility | Configurable controls |
| Content | No generative AI was used |



Leave a comment
Log in with itch.io to leave a comment.