• Unity
  • Skeleton in URP project on UI shows glitches

  • संपादित
Related Discussions
...

Hello everyone!
I'm using Spine for our game and would like to put the animation on the UI Canvas. Sadly I can't find suitable shader for the UI in URP.

this is a SkeletonMecanim using "Spine/Skeleton" shader

and then, this one is using shader from "Universal Render Pipeline/2D/Sprite-Lit-Default" and not placed on the canvas. This one looks good, but not suitable shader for UI

This one is placed on the canvas and using the "Spine/SkeletonGraphic" shader. This one works, I can even mask the Skeleton using MaskGraphic component, but as you can see it looks like it has some glitch around the border

I can use the shader from "Universal Render Pipeline/2D/Sprite-Lit-Default" but the masking component seems gave no effect to it

Is there any specific settings I should use to make the character's skeleton can be placed on the UI and being masked?

Thank you for the helps!


Whooops! Never mind! I managed to get it working by set the Straight Alpha Texture to true on the material settings :grinteeth:

Glad you've figured it out, thanks for getting back to us!

Note that when in doubt or when having troubles with related issues, please see the spine-unity documentation sections about proper setup for straight alpha and premultiplied alpha workflows:
spine-unity Runtime Documentation: Advanced Premultiplied vs Straight Alpha Export