Give up using Ngui instead of Texturepacker reason:
- In the Unity Editor, you can edit the JSON file generated by the Texturepacker (such as the "LOGINBG" wizard in the generated Atlas, modify the corresponding JSON file, such as the new "LoginBG1" node);
- Texturepacker come out with less resources than Ngui.
Texturepacker version: 4.2.3, use the steps below
- Configure the relevant TP options (note the configuration of size constrains and algorithm, otherwise the Ngui will appear garbled);
- After the setup is complete, drag and drop the resources provided by the art, click the corresponding button;
- Open the file generated by the previous step, drag the resulting file into unity, create the corresponding material (using the correct shader), Preform (Mount Uiatlas);
- You can do this by dragging the JSON file into the TP import:
Unity3d using Texturepacker to make Atlas