- Edited
Keep getting shader errors when opening Unity
I keep getting following shader errors each time I open Unity:
Shader error in 'Universal Render Pipeline/Spine/Skeleton Lit': Couldn't open include file 'Include/Spine-Input-URP.hlsl'. at line 109
I installed the URP package under Unity's packages folder. And I found these 3 shaders have compiler errors:
All of them say that "Couldn't open include file 'Include/Spine-Input-URP.hlsl'." But I can actually find that file in the "Include" folder.
I have no idea what I can do to resolve this error.
Spine Runtime version: spine-unity 4.0 (updated 2022-02-17)
Spine Shaders UPM Package version: Unity 2019.3-2021.1: spine.urp-shaders 4.0 (updated 2022-01-18)
Sorry to hear you're having troubles. This is strange indeed, we could not yet reproduce this problem. Which Unity version are you using?
By "I installed the URP package under Unity's packages folder" I assumed that you mean you have copied the com.esotericsoftware.spine.urp-shaders-4.0-2019.1
directory to the <ProjectName>/Packages
directory, right? You could have a try deleting your Library
directory to force Unity to re-import everything from a clean status.
If that fails, you could try deleting the com.esotericsoftware.spine.urp-shaders-4.0-2019.1
directory from Packages
again and instead installing it via the Unity PackageManager as described here.
If this is also not working, could you please send us your problematic Unity project as a zip package to contact@esotericsoftware.com? Please then briefly mention this forum URL in the email so that we know the context.
Error is gone after I deleted Library directory and re-imported everthing. Thank you for your suggestion!
Glad to hear you've figured it out! Thanks for getting back to us.