• Bugs
  • [unity] GetRepackedSkin ignores mipmaps argument

  • Змінено
Related Discussions
...

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

Thanks very much for reporting! Very much appreciated.
We will get back to you once we have released the bugfix.

Great, thanks!

New unitypackages have been uploaded with the bugfix, you can download them here as usual:
Spine Unity Download

Thanks again for reporting!

14 днів пізніше

Terrific, thanks Harald! 🙂