So I’m currently making a custom Input Manager for my game. And to make my life easier, I’d like to make a WinForms application in order to generate the first JSON, from which the game will then load its default keybindings…
Now I know that the UnityEngine.dll is just a wrapper for engine functionality written in native code, but is it possible to add, for example, the KeyCode enum to a WinForms project?
@JPB18 is on the right path, using the enum type and value would be the best way to pass the information back and forth and have it valid in both cases. Optionally, but more dirty would be to copy the namespace and full class and implement it in your winform config dialog. I would go with the first way though since it will translate with Enum.Parse().