Author Topic: UIDraggable Panel: How to loop the panel like the Clock app on Iphone  (Read 6744 times)

baby_demon

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 7
    • View Profile

See this Image

I want to make an Panel like this style. You can call it loopable panel  ;D
But I don't know how to make it happen.
Any one help me please.

sndwav

  • Guest
Re: UIDraggable Panel: How to loop the panel like the Clock app on Iphone
« Reply #1 on: March 26, 2013, 06:11:33 PM »
Hi, I would also like to make something similar to that...
Just like Example 7: "Scroll View (Panel)", but looping on both ends.

Can anyone suggest a way please?

baby_demon

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 7
    • View Profile
Re: UIDraggable Panel: How to loop the panel like the Clock app on Iphone
« Reply #2 on: April 09, 2013, 09:31:03 PM »
Please!
I post 2 topic and no one here can help or reply!

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIDraggable Panel: How to loop the panel like the Clock app on Iphone
« Reply #3 on: April 09, 2013, 09:48:21 PM »
There have been similar threads on this forum if you do a search. To save you time, summary is: reposition children when they get outside a certain range back to the opposite side.

sndwav

  • Guest
Re: UIDraggable Panel: How to loop the panel like the Clock app on Iphone
« Reply #4 on: April 18, 2013, 02:59:12 PM »
I couldn't find the other threads you mentioned :/

Can you please explain how do I access the UIGrid's children so I could re-position them?

Thanks!

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIDraggable Panel: How to loop the panel like the Clock app on Iphone
« Reply #5 on: April 18, 2013, 05:12:02 PM »
uiGridObject.transform.GetChild(i) where i goes up to transform.childCount

sndwav

  • Guest
Re: UIDraggable Panel: How to loop the panel like the Clock app on Iphone
« Reply #6 on: April 19, 2013, 09:04:06 AM »
Thank you! :)

sndwav

  • Guest
Re: UIDraggable Panel: How to loop the panel like the Clock app on Iphone
« Reply #7 on: April 21, 2013, 01:52:00 PM »
Another quick question regarding this...
I've read that NGUI elements use the .localPosition instead of .position
But when I scroll around, the localPosition doesn't get updated at all...

  1. void Update () {
  2.                 Debug.Log("localPos 1st child "+ grid.transform.GetChild(0).localPosition);            
  3.         }

That log always gives the initial position that the child was positioned at in the Scene view (as I scroll it back and forth in-game),
so I can't really check if its position has reached a certain limit.

Am I missing something here?
Thanks.
« Last Edit: April 21, 2013, 02:00:31 PM by sndwav »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile