是这样的,我制作了多个spine项目,这些项目用到的图片是差不多的,只有一些小差别,如果都单独打包纹理的话会出现图片重复打包的情况。我是否可以把所有图片都打包进在一个图集里,然后让这些spine项目共用这一个图集?
如何让多个spine项目共用一张图集?
- Edited
diamondmonster You can combine multiple skeleton atlases into a single atlas: choose Single atlas
in the Texture atlas
section of the export settings:
If each skeleton has its own separate Spine project, you can use the texture packer. You can pack all the images used in the two skeletons into a single atlas by specifying an image folder that containes them in the Input folder
field. Note that for a single atlas to be imported correctly at runtime, the image paths of the skeletons must match the paths written in the atlas.
Misaki 好的,如果我使用纹理打包器打包到一个图集以后,我需要怎么做才能在unity里让多个spine项目共同使用这一个图集呢?因为不同的spine项目名字不同
diamondmonster Different names in themselves are not a problem. As long as the path described in the atlas file matches the image path of the skeleton, the imported atlas file can be automatically read simultaneously with the skeleton data file (.json
or .skel.bytes
file).
To clarify, the path I'm talking about is this part:
Misaki 我明白了,非常感谢!