Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: gaurav on April 14, 2014, 06:29:08 AM

Title: Problem regarding Resolution independent UI
Post by: gaurav on April 14, 2014, 06:29:08 AM
Hi All,
I am using FixedSizeOnMobiles setting in UIRoot
Manual height 720
Minimum height 320
Maximum height 1536
& my base UI design screen resolution is 1080 * 720

The problem i am facing is that, when positioning my 2 health bar( of size 500*55 each ) at the top of the screen
I am setting anchor for one health bar as topleft and for other topright.
in all resolution it appear good but for resolution 1024*768 both bar overlap at the center
Pls Help with the solutions

Title: Re: Problem regarding Resolution independent UI
Post by: ArenMook on April 15, 2014, 09:09:25 AM
500*2 is only 1000 pixels, and your width is 1024, so I'm going to assume you positioned them away from the left and right edges of the screen.

If you don't want them to overlap, then you need to either make them smaller, or make them use width-based scaling by changing the anchor targets to be "custom" instead of left/right.