- Editado
Hi,
When building our game on Unity, we get couple errors on URP Spine Shaders:
It seems all comes down to the Undeclared Identifier, in both scripts:
Is there a proper fix for this?
Hi,
When building our game on Unity, we get couple errors on URP Spine Shaders:
It seems all comes down to the Undeclared Identifier, in both scripts:
Is there a proper fix for this?
decoamorim Please make sure you're using the latest version of the spine-unity URP shaders UPM package, as this error was recently fixed in this commit.
You need to re-download the latest version of the package from the Unity Package Manager (via the Update
button at the respective package), or even delete the Library directory in case the error persists after hitting the Update
button at the package in the Unity Package Manager does not resolve the problem. If you see the line #define IS_URP_14_OR_NEWER 1
in com.esotericsoftware.spine.urp-shaders/Shaders/Include/Spine-Common-URP.hlsl
on line 5, then you're on the proper version.
Hi Harald,
Awesome to know that it was fixed.
We are wrapping up the Demo, I´ll perform that update on next week.
I don`t see that line in Spine-Common-URP, therefore we are behind on the versioning.
I´ll reach back here to update the status of the build after updating it.
Thank you!
Glad to hear, thanks for the info!
Hi Harald,
So I have removed the previous URP pkg, and updated to the new one.
Confirming that on line 5 from "com.esotericsoftware.spine.urp-shaders/Shaders/Include/Spine-Common-URP.hlsl" I read #define IS_URP_14_OR_NEWER 1.
But still returned an error upon building on Spine-SkeletonLit-URP.
Same issue seams to remain for this one, please find attached below:
@decoamorim Terribly sorry, there was indeed a leftover unsuitable preprocessor if-condition not yet adapted. This has just been fixed on the 4.1 branch via this commit.
A new URP Spine shaders 4.1 UPM package is available for download here as usual:
https://esotericsoftware.com/spine-unity-download
Please do get an update accordingly. Please let us know if this update fixes your remaining issue. Thanks for reporting!
Hi Harald,
Build was successful with zero errors. Thank you for the amazing support!
decoamorim Thanks very much for confirming! Sorry again for the oversight, and thanks for reporting!