Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: zentuit on January 29, 2013, 07:45:17 AM

Title: Multiple atlases and atlas pixel size
Post by: zentuit on January 29, 2013, 07:45:17 AM
Hey all,
I'm really confused :)

I've read all (I think) of the posts here about using multiple atlases. I'm supporting the iPad2 and iPad retina for this next project.  I have 2 atlases.  The pixel size of the non-retina atlas is set to 1.  The pixel size of the retina atlas is set to .5.

I have UIRoot automatic checked off and Manual Height set to 768.  I have a script that loads the correct atlas based on screen size (I put in a debug statement to verify).

When I run the game on the iPad, things look fine.  When I run the game on the iPad retina everything is 1/2 the size I expected. I've even changed the retina atlas pixel size to 2, but the size of the UI elements don't change - they are still 1/2 the size.

What am I doing wrong?

Thanks
Title: Re: Multiple atlases and atlas pixel size
Post by: ArenMook on January 29, 2013, 05:43:15 PM
Update your version of NGUI. "automatic" flag no longer exists.

There are a few atlas switching solutions that have been posted on this forum.

http://www.tasharen.com/forum/index.php?topic=832 for example.
Title: Re: Multiple atlases and atlas pixel size
Post by: zentuit on January 29, 2013, 06:29:16 PM
Update your version of NGUI. "automatic" flag no longer exists.

There are a few atlas switching solutions that have been posted on this forum.

http://www.tasharen.com/forum/index.php?topic=832 for example.

Well upgrading fixed it up. How embarrassing.

And yep, I'm using that loading script - it works well.

Thanks for your time