Unity basic ngui Atlas Creation

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.