Transferred from: http://www.unitymanual.com/thread-37485-1-1.html
Because Ngui Atlasmaker to the optimization of packaging is not good, easy to play a large atlas, many parts are wasted, all currently use Texturepackage to optimize packaging atlas
1, first download texturepackage tools, online cracked version of the website can also be downloaded to use the free version, https://www.codeandweb.com/texturepacker/, then the simple installation is not too much introduction.
2, open our Texturepackage tool, ready our pictures, I use the resources pictures from the Internet,
Then the full selection drag to the right end of the Texturepackage tool, Texturepackage will automatically fill you, the rest is to set the picture,
Ps: NOTE!
Size to select pot
ALGORIHM to select Basic
3. The next step is to import texturepackage generated PNG and txt into our unity project, as well as import the Ngui plugin. Then we create a Ngui atlas, we select a picture in our project directory right-click Ngui->open, and after that create a gallery prefab, this time Ngui will help us create the good one map, Now all we need to do is to remove the texture image from the Ngui created Atlas, and then import the PNG image and TXT file we used to generate the texturepackage.
4, so that we can use texturepackage packaging to generate good compressed images and txt create Ngui Atlas, for texturepackage benefits we can go to their official website to see that the optimization of the game has a certain help.
(go) unity3d using Texturepacker Packaging tool to make Ngui (Atlas) collection