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)

Download

Download
Simple Keybindings(+sample scene).unitypackage 10 kB
Download
Windows Demo.zip 21 MB

Leave a comment

Log in with itch.io to leave a comment.