# FixSpineForUnity **Repository Path**: w2cxy/FixSpineForUnity ## Basic Information - **Project Name**: FixSpineForUnity - **Description**: 批量将spine导出的文件修复为unity可正确导入的文件。1.重命名.atlas文件为.atlas.txt2.为.json添加缺失字段,如果你的json是正确的,注释fixJson()函数的执行即可。 - **Primary Language**: Python - **License**: MIT - **Default Branch**: master - **Homepage**: http://codbo.cn - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 1 - **Created**: 2018-07-29 - **Last Updated**: 2022-02-21 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # FixSpineForUnity #### 项目介绍 这是一个会遍历当前文件夹的文件,批量将spine资源文件修复以导入unity。比如你需要将.atlas文件添加.txt后缀,当你的spine成千上万的时候,你应该 不会考虑手工去逐一修改了吧! 1. 重命名.atlas文件为.atlas.txt; 2. 为.json添加缺失字段。 #### 安装和使用 1. 下载并安装python3,python下载地址[python.org](https://www.python.org/getit/) 2. 将s2u.py移到需要修复的spine资源的顶层文件夹,在所有spine的上层即可。 3. 打开终端,进入spine资源顶层文件夹,执行 python3 s2u.py 4. 完美。 #### 历史版本 + v1.0 初始版本