Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: PortGalaxy on July 17, 2012, 05:56:13 PM

Title: Interface Auto-Position?
Post by: PortGalaxy on July 17, 2012, 05:56:13 PM
Hello,

On our game we have it so the web player automatically fits the users screen resolution.  The interface scales but I am not sure how to make it's positioning also scale.  See the image: http://i.imgur.com/2q9GJ.jpg

Is there an easy way to make the interface spread out based on the width?
Title: Re: Interface Auto-Position?
Post by: ArenMook on July 17, 2012, 06:37:07 PM
You need to use multiple UIAnchors, and split up your UI into different components -- parts that align to the bottom-left corner would be children of a UIAnchor that's bottom-left aligned. Parts that need to be on the bottom of the screen would go underneath a UIAnchor that's bottom-aligned, etc.