- Modifié
RepackedSkin problem with CopyTexture
In AtlasUtilities:CopyTexture you use the Graphics.CopyTexture method.
This method, according to the Unity documentation, is very dependent on the type of compression, and therefore a number of problems arise when repacking the skin when the atlases are compressed.
https://docs.unity3d.com/ScriptReference/Graphics.CopyTexture.html
Graphics.CopyTexture can only copy memory with the same size (src=832 bytes dst=224 bytes), maybe the size (src=26 * 32 dst=7 * 8) or format (src=RGBA Compressed ETC2 UNorm dst=RGBA8 UNorm) are not compatible
Your observations are correct, this is the reason why we document it here in the Important Note
section on the spine-unity docs pages:
spine-unity Runtime Documentation: Combining Skins
http://esotericsoftware.com/spine-unity a écrit2. Compression is enabled: Depending on the platform, ensure that the source texture has Texture import setting Compression set to None instead of Normal Quality.
Note that it would not be reasonable to have e.g. DXT compression enabled on the source and destination textures, since this would limit copyable regions to discrete 4x4 compression blocks.
@Marsyian See the documentation here for potential causes, in the note-box reading:
"重要提示: 如果重打包失败或产生意外问题, 可能源于以下原因: "
https://zh.esotericsoftware.com/spine-unity#%E7%BB%84%E5%90%88%E7%9A%AE%E8%82%A4
@Marsyian Sorry to hear. Does the problem still persist, since you said you have resolved a similar problem on this forum thread:
https://esotericsoftware.com/forum/d/25969-unity中通过sprite换装纹理不正确/3