• Unity
  • Color changing from Spine to Unity

Related Discussions
...

Hi there,

When changing a Slot color, certain colors lose saturation from Spine to Unity. As shown bellow (Spine on the left, Unity on the right). I made several tests to be sure I wasn't messing up the conversion from 255 to 1 :shake:

Weirdly some simpler colors (like red 1, 0, 0) are exactly the same in both Spine and Unity.

And there is no problem with other untainted slots of which I don't change the color: colors are exactly the same on both sides.

Could this be me doing something weird? Or is it a known problem that some tainted color are messed up?

I'm not seeing a difference.

The tint applied is a function of the shader code though.
So if you're using a different shader, it may have been designed to do something different.
Or you have some other render settings that were applied.

un mois plus tard

Thanks a lot for testing yourself. Mmmh, we do use Spine/SkeletonFillable shader but I just tried with the classic Spine/Skeleton and still the difference occurs. Damn!


Sorry to bump this, but I still haven't been able to solve it.

More information:

  • If I try to tint an image in Spine (any image), it will have less saturation in Unity.
  • SkeletonGraphic works fine and display colors properly, just like they are in Spine.
  • I tried the different Spine shaders, doesn't change the problem.
  • There is no problem if I test in a blank project, so the issue definitely comes from something in my current project.

So in my project, I removed the spine-unity runtime entirely, including all Shaders and re-imported the whole package from scratch. I also re-exported the animation from scratch as well. Then I created an empty scene, dragged the animation in it and still the same sh**:

Or you have some other render settings that were applied.

On the right is the inspector of the animation with color problem, with the material used, on the left.
Would you have a idea of what other settings could affect Spine animation color? Can you think of something else that I could reset to default? I tried all I could think of :wonder:

Hmm. The camera settings? Color Space settings?

So glad I asked, it was the Color Space who made a difference, and I had no idea it was even a thing. Once in Gamma Space, it displays proper colors. Many thanks for looking into this non-so-spine issue :yes: