Ngui making Atlas using Altas maker

Source: Internet
Author: User

Using Ngui version: 2.7.0

(1) about the placement of UI resources:

The placement path for the UI resource is typically stored in the resources folder under the Assets folder, and if the resources folder does not exist, you can create a new one. But why do you have to store it here, for example, to load a firework effect, the custom application to the Unity's resource loading method is: Resource.load (), this needs to put its resources in the folder named Resource.

However, not all resources are placed under the resource folder, when unity generates a game installation package, for folders other than resources, only the resource files used in the scene are packaged, and for the resources folder, because of the dynamic loading of the resource into memory, So it will all be packaged so that it will cause the game's package size to become larger.

It is customary to classify resources in the resource folder, such as the UI, to create a new folder called the UI and place its corresponding resource in the UI folder. Others, the reader's own consideration.

(2) Making Atlas

Ngui provides the UI picture packaging tool in Atlas maker, after placing the appropriate resources in Resources\ui, select the picture you want to package in Project view, and then click Ngui->open the Atlas maker, the effect

To generate a new atlas, rename it at Create and click Create.

To add a new picture on the original atlas, select the original Atlas at select. then click Create.

After success, a new three files will be generated in the corresponding image directory, for example:

Three files are the map (. png) of the Atlas, the Material Ball (. MAT) of the Atlas, and the preset (. Prefab) of the atlas.

Recommendation: After a successful Atlas build, it is recommended that you delete the UI resource files that were previously imported to reduce the amount of resources.

Ngui making Atlas using Altas maker

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.