Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: ysrikanth2011 on July 27, 2014, 11:54:44 PM

Title: How to align a background image for different screen resolutions.
Post by: ysrikanth2011 on July 27, 2014, 11:54:44 PM
Hi,


I am having a Texture of dimensions 800(width)  and 1280 (height). I want to align this as a background image for every menu.
I am creating this a NGUI-> Create -> Texture.
The problem is this image is not aligned correctly for different screen resolutions.
The corners are not being aligned properly. If I align the scaling in one resolution and it differs in another screen res.


How can I overcome this ?
Title: Re: How to align a background image for different screen resolutions.
Post by: ArenMook on July 29, 2014, 02:44:31 AM
You can anchor it. Anchored sprite will resize according to how you anchored it. I explain how anchoring works in video tutorials and on the documentation page for UIRect.
Title: Re: How to align a background image for different screen resolutions.
Post by: ysrikanth2011 on July 29, 2014, 09:05:10 AM
Thankyou very much Aren Mook . I am very happy with NGUI and your support.