• RuntimesUnity
  • Issues installing URP Shaders UPM package

I’m having the same issues as this post, but the suggestions in this thread doesn’t solve it for me :-(
https://ja.esotericsoftware.com/forum/d/17099-keep-getting-shader-errors-when-opening-unity/3

Basically Unity is spitting a bunch of errors when importing the URP Shaders UPM package. It says: Couldn't open include file 'Packages/com.esotericsoftware.spine.spine-unity/Runtime/spine-unity/Shaders/CGIncludes/Spine-Skeleton-Tint-Common.cginc’… I followed all instructions, (clicking the + icon, pressin “Add packages from disk…” etc). But nothing works. Using fresh version of Unity (2022.3.1f1), macOS Ventura.

I tried without success:

  • Deleting the Library directory and re-import everthing, errors still show up.
  • I deleted the com.esotericsoftware.spine.urp-shaders… in Packages, and re-installed like the instructions
  • I tried all above again but with Dropbox and Rider closed, some people were reporting it could mess up importing files
  • Right clicking the folder and pressing “Reimport” will spit [Worker0] Import Error Code🙁4)
  • Message: Build asset version error: packages/com.esotericsoftware.spine.urp-shaders/shaders/2d/spine-sprite-urp-2d.shader in SourceAssetDB has modification time of '2023-06-01T16:19:34Z' while content on disk has modification time of '0001-01-01T00:00:00Z'
  • I tried removing the “manifest.json” in the Packages folder, and then adding it back.
    Related Discussions
    ...

    Kind of solved:

    The error logs pointed me to the file “Spine Universal RP Shaders > Shaders > Include > SpineCoreShaders > Spine-Skeleton-Tint-Common” (but could be different for someone else, read the error logs).
    Opened the file. The top comment says “// Adapt this path accordingly if you have unpacked the Spine directory to another location.”, so I swapped them. In my case I commented “#Include “Packages”…” and uncommented to use “#Include “Assets/…”. Errors disappeared.
    I could now right click and press “Reimport” on the “Packages > Spine Universal RP Shaders”. All files successfully reimported.

    Problem: the stretchy man looks weird, I do use the “Example 2D URP Asset”. And sometimes the Console warns me that the stretchy man doesn't have "Solve Tangents" enabled in Skeleton Animation (under Advanced), but he do...

      PeterBacall Sorry for the trouble! I was able to reproduce that problem on my end. Apparently there is a problem with the latest URP Shaders UPM package. It seems to happen when I import the spine-unity runtime using unitypackage and add the URP shaders package with the UPM package. I tried to install the runtime via the Add package from git URL instead of the unitypackage and URP shaders from the UPM package, it worked.

      We are sorry for the inconvenience, but please wait a little longer until we fix the issue.

        Misaki Hi Misaki, thanks for the quick reply, no worries. Just confirming what you described was the way I installed the packages. Looking forward to the fix, cheers

        @PeterBacall Sorry for the troubles! There was some error with the packaging script (the respective file was not automatically copied over before packaging). New Spine URP Shaders UPM packages are available for download:
        https://esotericsoftware.com/spine-unity-download

        PeterBacall Problem: the stretchy man looks weird, I do use the “Example 2D URP Asset”. And sometimes the Console warns me that the stretchy man doesn't have "Solve Tangents" enabled in Skeleton Animation (under Advanced), but he do...

        Please let us know if this issue is resolved by the package update as well. Otherwise, please check whether you're perhaps using a pipeline asset other than the Example 2D URP Asset at the active Quality settings, overriding the set Example 2D URP Asset in Graphics settings.

          Harald
          Everything works now! Downloaded the new package, and I was also using the wrong URP Asset in "Project Settings > Quality". Thanks for the help !

            Something I noticed in the URP 2D Shaders example scene, when "SkeletonRenderTexture" is enabled on the stretchy man, it causes the character to look like this when entering Play. It also says the Quad Material is missing. However I'm not using the SkeletonRenderTexture script, it was worth mentioning if other stumble on it in the future.

              PeterBacall Everything works now! Downloaded the new package, and I was also using the wrong URP Asset in "Project Settings > Quality". Thanks for the help !

              Thanks for confirming, glad to hear!

              PeterBacall Something I noticed in the URP 2D Shaders example scene, when "SkeletonRenderTexture" is enabled on the stretchy man, it causes the character to look like this when entering Play. It also says the Quad Material is missing. However I'm not using the SkeletonRenderTexture script, it was worth mentioning if other stumble on it in the future.

              Oops, thanks very much for reporting! These added SkeletonRenderTexture components were not intended to be included in a commit which added some help messages to the scene (this slipped through since these scene modifications contain a lot of noise-text). This has just been fixed, the SkeletonRenderTexture components removed again from the URP 2D Shaders example scene. New URP packages are available for download here as usual:
              https://esotericsoftware.com/spine-unity-download