Yuan 我想通过Spine SpriteAtlas Import 将这两张的图片合并在一起然后通过unity导出新的skeletonData,进而去达到合批的效果,但是看了官方文档,并没有太解决我的问题
“Spine SpriteAtlas Import”工作流程只是为了将原始附件图像打包到 Unity 内部的图集中,而不是在 Spine 编辑器中。 它与合并两个图集纹理无关,不幸的是它不能做到这一点。
建议尽可能从 Spine 导出最终形式的图集纹理。 从 Spine 导出时,可以按文件夹结构打包:
https://zh.esotericsoftware.com/spine-texture-packer#%E6%96%87%E4%BB%B6%E5%A4%B9%E7%BB%93%E6%9E%84
或者,您也可以将多个骨架(导入多个骨架)添加到单个 Spine 项目,然后使用 Pack Attachments 导出到单个 Atlas。
请注意,您还可以使用运行时重新打包皮肤来减少绘制调用:
https://zh.esotericsoftware.com/spine-unity#%E7%BB%84%E5%90%88%E7%9A%AE%E8%82%A4
如果您有其他意思并且我们误解了您的帖子,请告诉我们。
The Spine SpriteAtlas Import
workflow is just intended to pack the raw attachment images to an atlas inside Unity instead of in the Spine Editor. It has nothing to do with merging two atlas textures, unfortunately it can't do that.
It is recommended to export the atlas textures in the final form from Spine where possible. When exporting from Spine, you can pack by folder structure:
https://zh.esotericsoftware.com/spine-texture-packer#%E6%96%87%E4%BB%B6%E5%A4%B9%E7%BB%93%E6%9E%84
Alternatively you can also add multiple skeletons (import multiple skeletons) to a single Spine project and then exporting with Pack Attachments to Single Atlas.
Note that you can also use runtime repacking of skins to reduce draw calls:
https://zh.esotericsoftware.com/spine-unity#%E7%BB%84%E5%90%88%E7%9A%AE%E8%82%A4
If you meant something else and we misunderstood your postings, please let us know.