你可能对何时剥离空白有误解。一般来说,你不能在Unity中剥离你的骨架图像的空白。但是,如果你使用一个从Spine编辑器导出的带有Strip Whitespace
选项的图集,并在Unity中重新打包,重新打包后创建的新图集也将是一个去除多余空白的图集。换句话说,在Unity中重新打包并不会使纹理比原来的大。
我自己试过了,所以我认为上面的答案是正确的,但是如果你真的在你的项目中试过了,有什么不成功的地方,请再问。
—
You may have a misunderstanding about when to strip whitespace. In general, you can't strip whitespace of your skeleton's images in Unity. However, if you use an atlas that was exported with Strip Whitespace
option from Spine editor and repack it in Unity, the new atlas created by the repacking will also be the one with the extra whitespace removed. In other words, repacking in Unity does not make the texture any larger than the original one.
I've tried it myself, so I think the above answer is correct, but if you actually try it in your project and something doesn't work, please ask again.