https://www.freesion.com/article/2032633991/
上面这个链接是原文,记录一下防止丢失。
原文链接: link.
文件格式
脚本路径
图集设置
点击Sprite Editor
点击切割图片,完成后atlas的图片就切好了
下面脚本
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
using System.IO;
public class AtlasTool : Editor {
[MenuItem("Tools/Slice Atlas")]