Overloads of the GetRepackedSkin() extension method in AtlasUtilities (lines 228 and 322) produce textures without mipmaps even if that argument is set to true. This is because calls to ToTexture() within the method use the default arguments rather than those passed in (including the texture format).
To Reproduce:
- Repack a skin (with textures that have mipmaps) using GetRepackedSkin() with the mipmaps argument set to true
- Debug.Log the resulting texture's mipmap count, it will be 1.
Fix:
- Change calls to ToTexture() at lines 253 and 353 in AtlasUtilities to pass on the textureFormat and mipmaps arguments.
- Debug the resulting texture's mipmap count, it will now be higher than 1.
Unity 2019.2, spine-unity-3.8-2019-09-27