Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Kamo on May 14, 2014, 01:21:29 PM

Title: UI positioning
Post by: Kamo on May 14, 2014, 01:21:29 PM
How can I position e.g. 5 buttons inside a container (e.g. horizontally) so that they are equally apart from each other, so if the container gets wider the gap between buttons gets bigger? Something like setting the scaling style on UIRoot pixel perfect but without the scaling  :)
Title: Re: UI positioning
Post by: Kamo on May 14, 2014, 02:00:56 PM
I guess the easiest way is to anchor the buttons to the container with the custom (percentage) anchor and setting the appropriate float or is there any other nicer way? :)
Title: Re: UI positioning
Post by: ArenMook on May 14, 2014, 11:56:07 PM
That's the right way -- relative anchoring.