• RuntimesUnity
  • Export: Transparency Issue

My character in Unity has grey or glitchy outlines, and I can’t figure out how to fix it. I tried different options, but nothing worked. The only thing that somewhat helped was turning off premultiply alpha during export, but that caused other issues, like layers having a screen effect.

I’m stuck and would really appreciate any help!

Related Discussions
...

It sounds like the issue you're experiencing with grey or glitchy outlines in Unity is related to the mismatch between your export and import settings regarding alpha handling. When exporting from Spine, you have the option to use either "Premultiply Alpha" or "Straight Alpha." If you choose "Premultiply Alpha," you must ensure that Unity is set up to handle premultiplied alpha textures. This involves enabling premultiplied alpha in the material settings in Unity. If you switch to "Straight Alpha," you should enable the "Bleed" option during export and ensure that Unity's texture importer settings are configured for straight alpha.

To resolve your issue, you should match the export settings from Spine with the import settings in Unity. If you are using premultiplied alpha, make sure that Unity's material settings are also set to handle premultiplied alpha. If you are using straight alpha, ensure that the "Bleed" option is enabled during export and that Unity's texture importer is set for straight alpha. This should help eliminate the grey or glitchy outlines without causing other issues like screen effects.

Using the Bleed option has the same effect as turning off premultiplied alpha, causing the layers to display a screen effect.

I found the issue, just needed to disable straight alpha and enable alpha clip with the default SkeletonGraphic shader.

  • Misaki ответили на это сообщение.

    Hoghren I am not quite sure if you are actually using the correct material settings, but anyway if you encounter another case of your skeleton looking wrong, check the FAQ of the spine-unity runtime documentation first. You can find a summary of how to fix the appearance with images of examples of incorrect appearance: https://esotericsoftware.com/spine-unity-faq#Visual