Author Topic: HELP: UICenterOnChild  (Read 3492 times)

Vesta

  • Guest
HELP: UICenterOnChild
« on: September 26, 2013, 06:16:55 PM »
Here is my set up:

-Panel (horizontal)
     -Table (center on child)
         -Game Object
         -Game Object
         -Game Object
         -Game Object

Here is where the trouble starts. My game objects are very wide (wider than the screen width) making it nearly impossible to reach the next/last object in the table. I am not sure where to go from here. Is there a way I can shorten the trigger distance on the center on child or do I need to write up something completely unique for this? Or is there another method I may not have considered?

:( I haven't been able to figure this out at all...

Vesta

  • Guest
Re: HELP: UICenterOnChild
« Reply #1 on: September 27, 2013, 12:30:27 AM »
Also, I am trying to figure out a way for draggable panel clipping areas to be dynamically sized. So far, it seems this is not an NGUI feature :(

IE: Section of the screen has an item list. This section is 30% of width and 90% of height. The clipping of the panel should match this.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: HELP: UICenterOnChild
« Reply #2 on: September 27, 2013, 01:46:56 PM »
Answer to both: custom scripts. If your content is bigger than the screen, then getting the behaviour of snapping to center after dragging in some reasonable fashion is going to be difficult, to say the least.