• RuntimesUnity
  • Spine 4.2 - SpotLight and PointLight do not work in build

Hello, dear devs.
We faced an issue with a lights.
Everything works fine in the editor, but Spot and Point Lights don't work in the build.

Tech. specs:
Unity 2022.3.22f1
URP 14.0.10
spine-csharp 4.2.16
spine-unity 4.2.58
urp-shaders 4.2.30

I have a 3D plain as a floor and three spine-boys: with spot light, with point light and with directional.
As you can see - in the editor Lights affect spine-boys, but in the build spot and point light only affect floor.
Directional light works in both cases.

Here is a picture:

I have found that if Main Light is Disabled in a URP settings - it fixes the issue with missing lights in the build, but it can't be done in our project.

I know that 4.2 still beta but could you please confirm that it's known issues and it will be fixed in the future?

Please let me know If you need any additional info from me.
Have a nice day 🙂

    Related Discussions
    ...

    Everything works fine in the editor, but Spot and Point Lights don't work in the build.

    Usually when shaders behave differently in the Editor vs. the build, the reason is that the used shader is not included in the list of Always Included Shaders in the project settings. This only applies when the shader or material is set through code though. If it is assigned at a normal scene without any code involved it must be a different issue. How are you assigning the materials and shaders in your case?

    Which Spine URP shader are you using? Could you please share the complete material settings which don't render as desired in the build?

    Or better, could you please send us a minimal Unity project which still demonstrates this issue? You can send it as a zip package to contact@esotericsoftware.com, briefly mentioning this forum thread URL so that we know the context. Then we can have a look at what's going wrong.

    AHPyXA I know that 4.2 still beta but could you please confirm that it's known issues and it will be fixed in the future?

    That's not a known issue, otherwise it would be on our roadmap. Also, such an issue would never remain unresolved for very long.

    Hello, Harald.
    This is just a regular Spine object - no code is used to assign the material.
    Regarding shader - it's standard "URP/Spine/Skeleton Lit" shader.

    I have sent a minimal project. Hope this helps.

    @AHPyXA Thanks for sending the reproduction project. We will get back to you here on the forum once we've figured out what's going wrong.

    5 days later

    @Harald Thank you very much.
    I confirm that using urp-shaders 4.2.31 resolved the issue.