Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Vesta on September 26, 2013, 06:16:55 PM

Title: HELP: UICenterOnChild
Post by: Vesta 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...
Title: Re: HELP: UICenterOnChild
Post by: Vesta 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.
Title: Re: HELP: UICenterOnChild
Post by: ArenMook 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.