• Unity
  • Unity LWRP -- Alpha Black Problem

  • 編集済み
Related Discussions
...

Hi,

I tried to find something about it in the forum but I couldn't find anything.

We are using SkeletonAnimation and SkeletonGraphic to animate objects in Unity.
The UI objects using SkeletonGraphic are normal.
But when the object using SkeletonAnimation fades the alpha from 100% to 0%, the spine animation seams to getting dark with shader Universal Render Pipeline/2D/Sprite-Lit-Default (other types of shaders didn't work).

So how to solve this problem? Thanks anyway.

Unity: 2020.1.4f1c1
spine-unity: spine-unity 4.0
LWRP Shaders UPM package: spine.lwrp-shaders 4.0 for Unity 2019.2

I have also replied here on this forum thread:
Unity lwrp渲染器下Alpha渐变发黑的问题

I'm not sure I understand your question correctly, as machine translation seems to have failed translating some parts properly.

Did you export your skeleton in straight alpha workflow, having Bleed enabled in Spine Export and sRGB Color Texture and Alpha is Transparency enabled in Unity's Texture Importer settings, as shown here:
spine-unity Runtime Documentation: Advanced Premultiplied vs Straight Alpha Import

Please also disable Advanced - PMA Vertex Colors at the SkeletonAnimation component in the Inspector.

We solve this problem by "disable Advanced - PMA Vertex Colors"!!!
Thanks you very much!!!

Glad that you've figured it out, thanks for letting us know!