Can anyone point me to any instructions or hints on setting up XBOX360 Controller to select a UI Button.
I’m currently ignorant about the controller inputs.
Regards,
Kerry
Can anyone point me to any instructions or hints on setting up XBOX360 Controller to select a UI Button.
I’m currently ignorant about the controller inputs.
Regards,
Kerry
I’d recommend the ‘InControl’ plugin - it deals with lots of different controller types and is very easy to integrate.
There’s an older free version here ( GitHub - pbhogan/InControl: An input manager for Unity that tames the cross-platform controller beast. ) but the store one is better and more up to date so worth buying if you can afford it.
Plugins like InControl and Rewired are nice, especially if you’re making a multiplayer game, but Unity has pretty good built-in support for this, too.
UI Buttons react to Submit button presses. You can define these buttons in Unity’s Input Manager (Edit > Project > Input). For example, you can define another Submit entry for joystick button 0 (the ‘A’ button on an Xbox controller).
Unity UI has built-in gamepad navigation (using the Input Manager’s Horizontal and Vertical entries), but your UI has to start with an element selected. Assign the first UI Button to your EventSystem’s First Selected field.
You can let Unity UI set up the path of navigation between buttons automatically or change Navigation to Explicit and specify where up/down/left/right go to.
Thanks Guys,
Looks like the
Interaction Components in the UI manual deserve a good study.
Thanks
Regards, Kerry