Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: motionsmith on March 25, 2013, 04:30:32 PM

Title: Mapping Atlas Sprites Between HD and SD
Post by: motionsmith on March 25, 2013, 04:30:32 PM
I'm working on getting atlas swapping working to support both HD (retina display) and SD.

My question is, when an atlas is swapped at runtime, how does a widget know which sprite to use if the SD Sprite and the HD Sprite have different names? Is it mapped by the display order in the Atlas Maker window?
Title: Re: Mapping Atlas Sprites Between HD and SD
Post by: Nicki on March 26, 2013, 03:06:23 AM
It doesn't. They should be named the same.
Title: Re: Mapping Atlas Sprites Between HD and SD
Post by: motionsmith on March 26, 2013, 12:27:23 PM
The Sprite name is taken from the name of the texture, and I don't see a way to customize that. That means both my HD and SD textures have to have the same name? Obviously this isn't possible, unless they're in different folders. So is that then the workflow? Put the SD and HD textures in different folders and make sure they're named the same?
Title: Re: Mapping Atlas Sprites Between HD and SD
Post by: Nicki on April 02, 2013, 10:41:45 AM
Yup.

hires and lores folder.