Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: mukulabdagiri on July 04, 2016, 07:18:53 AM

Title: Controller Back button input
Post by: mukulabdagiri on July 04, 2016, 07:18:53 AM
Hello,

I want to add UI navigation events in my game menu. I went through the Controller Input example, which shows navigating through the options on 'OnClick' event. To go back to the main page, user has to select and click on the 'Done' button. How can I navigate back just by clicking a button on the controller eg 'circle button of ps4', so that the button will always act as a 'go back' button?

Thanks,
Mukul
Title: Re: Controller Back button input
Post by: ArenMook on July 05, 2016, 07:43:56 PM
Add a UIKeyBinding script to the "done" button and set it to react to whatever joystick button you want.