Author Topic: Get centered item from scroll view  (Read 2372 times)

TifaOng

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 12
    • View Profile
Get centered item from scroll view
« on: December 17, 2013, 04:14:11 AM »
Hi everyone,

I have created a draggable panel, similar to this video, http://www.youtube.com/watch?v=lc4E7jLZXa4
I also have the centered outline sprite.

But right now, I need to store the centered object, how do I do it? What I've done is added UI Center on Child script to Grid, what's next?
I know something like UICenterOnChild.onFinished but what to do with it?
Thanks in advance!
« Last Edit: December 17, 2013, 10:37:20 PM by TifaOng »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Scroll view in a window
« Reply #1 on: December 17, 2013, 12:15:10 PM »
That's a very outdated tutorial. Have you watched the video tutorials for NGUI 3.0.7?