• Unity
  • Spine 3.8 and Unity 2019.3 2D Lighting

Related Discussions
...

Hi all!

So, me and my company want to use Spine and 2D lighting to make interactive ligthing in our game.

But we have some problems, and I don't know is it me or there is some bugs in Spine-Unity?

Using UWRP, I've created 2D Renderer.

The only shader that works is URP/2D/Spine/Sprite, but there is art degradation when i'm using this shader.

I think that I need to use URP/2D/Spine/Skeleton Lit but every Spine object will be fully transparent if I set this shader.

Are your assets displaying correctly and reacting to 2D lights in your scene if you change the shader to Universal Render Pipeline/2D/Sprite-Lit-Default?
Is your Pipeline Asset which references the 2D Renderer asset assigned at both Project Settings - Graphics - Scriptable Render Pipeline Settings and Project Settings - Quality - Rendering?

If the above steps do not help, could you please try re-importing one of your problematic character folders, and re-assign the shader at the respective material?

If none of the above steps resolve the issue, could you create a minimal Unity project that still shows the problem and send it as a zip file to contact@esotericsoftware.com? Then we can have a look.

Harald wrote

Are your assets displaying correctly and reacting to 2D lights in your scene if you change the shader to Universal Render Pipeline/2D/Sprite-Lit-Default?
Is your Pipeline Asset which references the 2D Renderer asset assigned at both Project Settings - Graphics - Scriptable Render Pipeline Settings and Project Settings - Quality - Rendering?

If the above steps do not help, could you please try re-importing one of your problematic character folders, and re-assign the shader at the respective material?

If none of the above steps resolve the issue, could you create a minimal Unity project that still shows the problem and send it as a zip file to contact@esotericsoftware.com? Then we can have a look.

Yeah my assets work fine with 2d lighting and with Sprite-Lit-Default material.
Also, my pipeline asset is assigned to both Graphics and Quality.

If i will get permission to send you our characters, I will write to your e-mail. Thanks in advance.

Thanks for the reproduction package email.

Unfortunately, the package is missing all .meta files. As a consequence, all references in Unity are broken.
Please send us the project again with the .meta files included.


Thanks for the new reproduction package.
I just found the cause of the problem (and must admit I could have already seen it in the screenshots you posted):

The assigned shader that did not work in your 2D Renderer setup was

Universal Render Pipeline/Spine/Skeleton Lit

but this is the normal (3D) version. The following 2D shader should be used instead:

Universal Render Pipeline/2D/Spine/Skeleton Lit

Note that all shaders for use with the 2D Renderer will be listed in Universal Render Pipeline/2D/Spine going forward.