- Home /
How can I disable gamepad input, for my UI?
Hey, I have a program that's controlled via gamepad, but as part of the UI, there are settings in the form of buttons, sliders, toggles, etc. So the questions is: How can I make these settings UI elements, only be activate-able by mouse input? Because at the moment, whenever I move the stick on the gamepad, or press a button, it activates some of the UI elements.
Using the 4.6 UI
Answer by Mr_FJ · Apr 03, 2015 at 03:58 PM
I found a solution. It will also disable keyboard interaction, but it works for me.
In the EventSystem object, that is created when you first create a canvas, under the "Event System" component, there's a toggle called "Send Navigation Event". Un-check that to limit gamepad and keyboard interaction.
Hope it helps someone else :)