- Home /
How can I retrieve the Axis/Button list programmatically?
Is there a way to programmatically retrieve the list of axes and/or buttons, such as the ones whose names would be used in Input.GetAxis/Button/Up/Down?
The InputManager in the editor and docs make it looks like there is a public InputManager class, with an Axes field, but when digging through the Assembly Browser or searching online, I can't seem to find anything like this.
I guess the Input$$anonymous$$anager is an internal ScriptableObject, not a class (even though you create ScriptableObjects writing a class).
With a quick search on Google I can only see that accessing the Input$$anonymous$$anager values at runtime is not possible, and the alternative is using a plugin that handles input without Unity's Input$$anonymous$$anager.
Answer by Eric5h5 · May 24, 2016 at 07:15 PM
It's not possible, but they're working on a new input system.
Answer by noorudheen · May 24, 2016 at 05:17 PM
just use retreive class
Can you clarify with an example or provide a link to the API docs?
what exactly u want to achieve? in game key mapping?