Author Topic: Multiple atlases and atlas pixel size  (Read 5786 times)

zentuit

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 12
    • View Profile
Multiple atlases and atlas pixel size
« 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

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Multiple atlases and atlas pixel size
« Reply #1 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.

zentuit

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 12
    • View Profile
Re: Multiple atlases and atlas pixel size
« Reply #2 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