• Runtimes
  • Unity Build Error Using URP Shader.

I get a shader error when building for Windows 64bit.
However, the build was completed.
Is there a problem with this error?
Thank you.

Shader error in 'Universal Render Pipeline/Spine/Sprite': undeclared identifier 'EncodeMeshRenderingLayer' at project/Packages/com.esotericsoftware.spine.urp-shaders-4.1-2019.1/Shaders/Include/Spine-Sprite-ForwardPass-URP.hlsl(357) (on d3d11)

Shader error in 'Universal Render Pipeline/Spine/Skeleton Lit': undeclared identifier 'EncodeMeshRenderingLayer' at project/Packages/com.esotericsoftware.spine.urp-shaders-4.1-2019.1/Shaders/Include/Spine-SkeletonLit-ForwardPass-URP.hlsl(185) (on d3d11)


Version
Unity 2021.3.18f1
spine-unity-4.1-2023-02-17
com.esotericsoftware.spine.urp-shaders-4.1-Unity2019.3-2023-02-21

Related Discussions
...

We're sorry to hear you're having troubles. Unfortunately we could not reproduce the behavior on our end, neither with enabled nor disabled "Light Layers" setting in the URP Asset (perhaps due to different versions of Unity's "Universal RP" package). Could you please send us a minimal Unity project that still shows this issue? You can send it to contact@esotericsoftware.com, briefly mentioning this forum thread URL so that we know the context.

In general a shader or shader variant which is not used should not cause any troubles in a build, so you should not encounter any problems from it. Nevertheless, we would happily fix this issue if it can be reproduced.

Thank you for replying.
I sent you a unity project file.

Thanks for sending the reproduction project, we received everything. We'll get back to you here on the forum as soon as we've got a bugfix ready. Thanks for reporting!

This issue has just been fixed on the 4.1 branch. A new 4.1 Spine URP Shaders UPM package is available for download here as usual:
http://esotericsoftware.com/spine-unity-download
Thanks for again for reporting! Please let us know if this resolves all issues on your end as well.

7일 후

I have confirmed that the problem is fixed.
Thank you!

Glad to hear, thanks for getting back to us!