Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: makeshiftwings on April 30, 2012, 12:20:07 AM

Title: Add a premade icon sheet to a texture atlas?
Post by: makeshiftwings on April 30, 2012, 12:20:07 AM
I have an existing png image that's a bunch of 120x120 icons stitched together.  Is there an easy way to turn this into a texture atlas?  I know I could probably use some photoshop trickery to split it back up into a hundred different icon files and then drag them all into the atlas tool to re-stitch them, but if there's some way to just tell NGUI that the atlas is 10 x 10 120p icons that would make my life much easier. ;)
Title: Re: Add a premade icon sheet to a texture atlas?
Post by: Nicki on April 30, 2012, 02:17:00 AM
I don't think you can do this at this point. You can make your own sprites from the atlas I believe, but I think it's probably easier just to cut them out into their own files and make the atlas as normal.
Title: Re: Add a premade icon sheet to a texture atlas?
Post by: ArenMook on April 30, 2012, 03:14:45 AM
Just create a brand-new atlas, tell it to use the material using this texture then add sprites yourself by specifying their positions if you know where they are.

There is no "import this grid of sprites" option.