Author Topic: Selecting Centered Items on scroll view  (Read 8229 times)

Orfen

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 14
    • View Profile
Selecting Centered Items on scroll view
« on: February 18, 2013, 10:08:35 AM »
Hello, i am a bit of a noob with unity and ngui, and i was wondering if there was any event that fires when the scroll view centers on an item, in a way that you only have to scroll and not click the item to actually select it(that would be OnClick i guess). I tried assigning the CenteredObject to a variable and using that for what i wanna do, but i couldn't manage to make it work. I also found a thread that ArenMook said to make the items in the scroll view radio buttons which is pretty close to what i'm trying to do, but i think you have to click it to set isChecked to true. Any ideas?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Selecting Centered Items on scroll view
« Reply #1 on: February 18, 2013, 05:28:57 PM »
UICenterOnChild.onFinished

Orfen

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 14
    • View Profile
Re: Selecting Centered Items on scroll view
« Reply #2 on: February 19, 2013, 05:22:31 AM »
After spending some time learning about delegates i got it, thanks.
« Last Edit: February 19, 2013, 09:09:09 AM by Orfen »