Author Topic: Controller Back button input  (Read 7362 times)

mukulabdagiri

  • Newbie
  • *
  • Thank You
  • -Given: 2
  • -Receive: 0
  • Posts: 11
    • View Profile
Controller Back button input
« 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

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Controller Back button input
« Reply #1 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.