• Unity
  • Error when adding URP shaders via UPM

I installed Spine-Runtime via UPM.

I have no problem with spine-csharp, spine-unity, but when I install URP Shaders via UPM, the shaders fail to compile.

The attached image shows a simple project with various Spine-Runtime installed via UPM.
The shaders in URP Shaders fail to resolve the include path, resulting in an error.

Specifically, this is because Spine-Common.cginc specifies a path that does not take UPM into account, but if I comment out the second line and enable the third line, the compilation completes successfully.
This is fine for me alone, but I am having trouble propagating this fix when working with multiple people.

Could you please confirm this?

Related Discussions
...
  • Изменено

Thanks for reporting and sorry for the troubles. Now that the complete spine-unity core is cleanly supported via UPM, it indeed makes more sense to default to the UPM paths on the git repository, as the provided zip package has the dependencies included as file-copies anyway. We will let you know once the update is available.

Thank you.
I really look forward to UPM support.

Tried it out, no errors!
Thanks for the quick response!

Very glad to hear, thanks for getting back to us!