Author Topic: Stopping UIInput in scroll view  (Read 1262 times)

RocketBunnyRob

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 4
    • View Profile
Stopping UIInput in scroll view
« on: September 04, 2014, 08:53:06 PM »
Hi,

I'm building an app that has a series of UIInputs in a row down the screen, like a questionnaire, and the user can swipe up and down (in a scrollview) to see all of the input fields.  The only problem I'm having is that the input fields get triggered when the user starts to swipe because they start their swipe touching an input field.

Is there a good way of getting around this problem? 

Thanks,

-Rob.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Stopping UIInput in scroll view
« Reply #1 on: September 05, 2014, 01:07:32 PM »
UIInput responds to selection. If you don't want it to, you will either need to modify its code, or place the UIInput script on an object that doesn't have a collider. You can then choose to give it selection via code (by setting UIInput.isSelected).