Tag: blog http OS file 2014 Art
Unity version: 4.5 ngui version: 3.6.5
1. Select the image to be created and put it in the corresponding directory. Create a new folder named picture under asset to place the image:
2. Select an image and enable Atlas maker:
3. Click the create button in the window and select a path to save. Here, we create a folder named prefabs to save the generated files. We can see that three files are generated under the prefabs Folder:
If you want to create another Atlas, repeat steps 2 and 3;
4. Use ngui to create one by one:
Create a button under the Panel to test:
Search for simple button. You can see a ngui default button in the ngui folder and copy it to the Panel:
Press f2 to change the button name to heroskill1:
Run the command first to see the following results:
5. You can apply the self-created atlas on the button:
Delete the label under heroskill1, click heroskill1, and modify atlas and Sprite in uisprite on the right:
6. Select the created one in Atlas and click Select. If the select is not displayed in the list, Click Show All to search in the asset Folder:
Select the corresponding sprite:
7. Run the command to see the effect:
Reference link:
Http://blog.csdn.net/liang_704959721/article/details/8172272