Hello everyone!

I have a project where I have installed everything necessary for Spine (through Git), and everything related to Spine itself works perfectly. However, when I try to change the default material, I encounter issues.

Using /Spine/Skeleton-lit, I see the sprite as "pink" (as if "something is missing").

If I use /Universal Render Pipeline/Spine/Skeleton-lit (or any other material from this folder), the sprite is simply invisible.

I've tried adjusting Unity settings, the cameras, and different scenes (it's a project I picked up halfway, so I don't have control over everything that's been done so far, and maybe I'm overlooking something).

The thing is, I would like to change my Spine animations so that they are affected by the lighting.

Thank you for your responses, Best regards!

Related Discussions
...

It seems like you're encountering issues with the shaders when using Spine with the Universal Render Pipeline (URP) in Unity. The pink color indicates that the shader is not compatible with URP. To resolve this, ensure you are using the correct URP-compatible shaders provided by Spine. You should use the Universal Render Pipeline/Spine/Skeleton Lit shader for your materials. If the sprite is invisible with this shader, double-check that your URP settings are correctly configured in Unity's Project Settings under Graphics and Quality. Make sure the URP Asset is properly assigned, and that the lighting settings are configured to interact with the Spine shaders. Additionally, ensure that the Spine URP Shaders UPM package is up to date, as older versions might not be fully compatible with the latest Unity or URP versions.

I have checked that even the spine examples materials are broken as in the scene "Sprite Shaders", where everything appears to be pink (missing material).

I have uninstalled everything from git and installed the package from https://es.esotericsoftware.com/files/runtimes/unity/spine-unity-4.2-2024-09-23.unitypackage
(as is the only way I know to access spine examples).

I'm starting to suspect that there is something missing in the spine installation but I'm not sure at all.

Any help is really welcome.
Thank you!

  • Misaki ha risposto a questo messaggio

    Yimec It is expected behavior that the Spine/Skeleton Lit shader will be pink in URP projects.
    as you have seen, since the shaders for the built-in pipeline are not available in projects using URP.
    If you want to use the URP Shaders Extension Package, check that the example scenes for URP are displayed correctly after installing it. Example scenes for URP shaders can be imported from the package manager:

    (In my screenshot, the button says "Reimport," but if you haven't imported yet, it should say "Import".)

    If the appropriate URP assets have been set up within Project Settings, the example scene should look like this:

    The Raptor skeleton in this scene uses the Universal Render Pipeline/Spine/Skeleton-lit shader, so this will help you to see what it would look like if you applied this shader:

    Thank you @Misaki! importing the samples (and using the sample URP setup) made it!

    I have no words to thank you enough!