• Runtimes
  • Skeleton tiny shader use dark color cause a anim alpha problem

i use dark color for hurt effect,but when dark color work,spine "attack" anim it has a effect alpha set to 0,but is still show color.
In normal it should be unvisiable


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

    zxy Could you please tell us the exact name of the shader you are using? For example, shaders for using tint include the following:

    • Spine/Skeleton Tint
    • Spine/Skeleton Tint Black
    • Spine/SkeletonGraphic Tint Black

    I can tell that what you are using is one of the two above (since the material properties of Spine/SkeletonGraphic Tint Black are different from the ones in the screenshot you attached), but I am not sure which of the two it is. If what you want to do is apply an animated black tint that you set up on the Spine editor, you need to use the Spine/Skeleton Tint Black shader. This shader requires an additional setup step, so see the spine-unity runtime documentation for more information:
    https://esotericsoftware.com/spine-unity#Shaders

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

      Misaki use Spine/Skeleton Tint

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

        zxy I see, so could you try using Spine/Skeleton Tint Black to see if it works?

        zxy it has a effect alpha set to 0,but is still show color.

        Could you please describe what you mean by "effect alpha"? What value did you set, and how did you set it in code?

        While you could switch to using Tint Black functionality and the respective Spine/Skeleton Tint Black shader, it's a different approach which requires different setup on the Spine Editor side. However, it's a very powerful feature which allows you to control tint and tint black colors per slot, and allow for animations to control these colors.