Hi everyone!
I'm trying to solve an error that happens every time I repack a skin.
In the game I'm developing I'm using mix and match as explained here: https://en.esotericsoftware.com/spine-unity-mix-and-match
And after changing an equipment through mix and match I call the RepackSkin method, and then this error happens:
Graphics.CopyTexture called with region not fitting in source element: trying to copy from region (x:921, y:245, width:260, height:129) of mip 0 (size: 4x4)
UnityEngine.Graphics:CopyTexture (UnityEngine.Texture,int,int,int,int,int,int,UnityEngine.Texture,int,int,int,int)
I'm using a simple model with 3 textures (body, clothes and hairs). The thing is that I'm replacing the exported textures for the clothes and the hairs with empty 4x4 pngs (to save on memory), since they are being replaced by new textures once the player decides what hair and clothes to use.
And visually it generates this weird empty texture, as if it's using the empty png instead of the equipped texture through mix and match:
Any help would be really appreciated since I'm a bit stuck with this issue.