Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: GroovyGray on April 30, 2014, 04:09:00 PM

Title: Resize Children
Post by: GroovyGray on April 30, 2014, 04:09:00 PM
When resizing the screen I need the 4x4 area to always stretch and squash to the screen ratio like in the image. I have not be able to find a way to do this with anchors. The example image was done using unity scale values, if I use a stretch component on the parent of the squares it doesn't scale in a way that will effect the children. any ideas?

(http://s30.postimg.org/lshlickkx/Example.jpg)
Title: Re: Resize Children
Post by: ArenMook on April 30, 2014, 06:00:14 PM
Quite simple to do with anchors. Switch anchors to Custom and adjust the relative value. Check the UIRect documentation page for more info: http://www.tasharen.com/forum/index.php?topic=7013.0
Title: Re: Resize Children
Post by: GroovyGray on April 30, 2014, 06:43:20 PM
Thanks, that did it!