• RuntimesUnity
  • New project - URP shaders issue; cannot get skeleton to render properly

Been a hot second since I used spine but I created a new project, installed the latest Unity runtime, installed the URP shaders normally.

I dragged in my skeleton but the shader slots reverts to "NoRender Material". While the Skeleton Mecanim script is active, it doesn't allow me to change the material on the mesh renderer. Also one of the URP shaders fails to compile

Shader error in 'Universal Render Pipeline/Spine/Outline/Skeleton-OutlineOnly': Couldn't open include file '../Include/Spine-Input-Outline-URP.hlsl'. at line 52

Any advice?

  • Harald님이 이에 답장했습니다.
    Related Discussions
    ...

    If you're installing via git link, try downloading the runtimes asset and importing manually. Same with shaders, you can add a package locally. If I recall correctly, I had similar issues and manual download/setup resolved those.

    CheMBurN While the Skeleton Mecanim script is active, it doesn't allow me to change the material on the mesh renderer.

    Please note that SkeletonRenderer (and subclasses SkeletonMecanim and SkeletonAnimation) assigns materials (with the required atlas pages) every frame based on the active attachments.
    See the documentation here:
    https://esotericsoftware.com/spine-unity#Materials

    CheMBurN Also one of the URP shaders fails to compile

    Regarding shader compile errors:
    This might be due to mixing packages installed via git URL and via a downloaded unitypackage.
    From the documentation page, section Option B - Add package from git URL:

    Important Note: When installing the URP Shaders UPM package from git URL, it is required that you also have the spine-csharp and spine-unity packages installed via the Unity Package Manager, and not from a unitypackage to the Assets folder. Otherwise URP Shaders UPM package shader include paths point to a spine-unity package directory which does not exist, leading to shader compile errors.