Author Topic: UIInput not triggering on iOS  (Read 1550 times)

selzero

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 14
    • View Profile
UIInput not triggering on iOS
« on: February 22, 2014, 11:52:53 AM »
Hi Guys,

I apologies if this issue has been tackled elsewhere I have searched for a solution but no luck.

I am using UIInput, it works fine, I am tracking inputs with OnInput, in the editor it works fine, on Android it works fine, but when I put the game onto an actual iOS device the exact same code is not firing the OnInput event. I have debug output at the start of the function and it's just not firing when it is on an iOS device.

I took the "Tutorial 9" example, added a UIInput component and the OnInput event, again, it works on Android, and the Editor, but not on the iOS device.

Is there a work around for this??

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIInput not triggering on iOS
« Reply #1 on: February 23, 2014, 10:41:34 AM »
OnInput is a notification sent by UICamera when Input.inputString changes. I'm guessing Input.inputString doesn't change until you submit the string. TouchScreenKeyboard has the value instead, which is what UIInput uses. UIInput doesn't use OnInput. In fact, thinking about it, I see no reason why I can't remove the OnInput notification since it's not used.