T.Fly()

The following errors pop up from time to time. When I imported the NPM package for the first time and also after I imported an unrelated 3rd party plugin Odin Inspector. Doesn't seem to pop up on domain reload though and the errors otherwise do clear.

Latest Spine 4.1 and latest NPM runtimes. Unity 2021.3.6f1.


Shader error in 'Universal Render Pipeline/2D/Spine/Skeleton Lit': Couldn't open include file 'Packages/com.esotericsoftware.spine.spine-unity/Runtime/spine-unity/Shaders/CGIncludes/Spine-Common.cginc'. at /GameDev/Dungeon Tavern/Library/PackageCache/com.esotericsoftware.spine.urp-shaders@2ef38e4f01/Shaders/Include/SpineCoreShaders/Spine-Common.cginc(2)

Compiling Subshader: 0, Pass: <Unnamed Pass 0>, Vertex program with <no keywords>
Platform defines: SHADER_API_DESKTOP UNITY_COLORSPACE_GAMMA UNITY_ENABLE_DETAIL_NORMALMAP UNITY_ENABLE_REFLECTION_BUFFERS UNITY_LIGHTMAP_FULL_HDR UNITY_LIGHT_PROBE_PROXY_VOLUME UNITY_PBS_USE_BRDF1 UNITY_SPECCUBE_BLENDING UNITY_SPECCUBE_BOX_PROJECTION UNITY_USE_DITHER_MASK_FOR_ALPHABLENDED_SHADOWS
Disabled keywords: SHADER_API_GLES30 UNITY_ASTC_NORMALMAP_ENCODING UNITY_ENABLE_NATIVE_SHADOW_LOOKUPS UNITY_FRAMEBUFFER_FETCH_AVAILABLE UNITY_HALF_PRECISION_FRAGMENT_SHADER_REGISTERS UNITY_HARDWARE_TIER1 UNITY_HARDWARE_TIER2 UNITY_HARDWARE_TIER3 UNITY_LIGHTMAP_DLDR_ENCODING UNITY_LIGHTMAP_RGBM_ENCODING UNITY_METAL_SHADOWS_USE_POINT_FILTERING UNITY_NO_DXT5nm UNITY_NO_FULL_STANDARD_SHADER UNITY_NO_SCREENSPACE_SHADOWS UNITY_PBS_USE_BRDF2 UNITY_PBS_USE_BRDF3 UNITY_PRETRANSFORM_TO_DISPLAY_ORIENTATION UNITY_UNIFIED_SHADER_PRECISION_MODEL UNITY_VIRTUAL_TEXTURING USE_SHAPE_LIGHT_TYPE_0 USE_SHAPE_LIGHT_TYPE_1 USE_SHAPE_LIGHT_TYPE_2 USE_SHAPE_LIGHT_TYPE_3 _LIGHT_AFFECTS_ADDITIVE _STRAIGHT_ALPHA_INPUT
Shader error in 'Universal Render Pipeline/Spine/Skeleton Lit': Couldn't open include file 'Packages/com.esotericsoftware.spine.spine-unity/Runtime/spine-unity/Shaders/CGIncludes/Spine-Common.cginc'. at /GameDev/Dungeon Tavern/Library/PackageCache/com.esotericsoftware.spine.urp-shaders@2ef38e4f01/Shaders/Include/SpineCoreShaders/Spine-Common.cginc(2)

Compiling Subshader: 0, Pass: ForwardLit, Vertex program with _RECEIVE_SHADOWS_OFF
Platform defines: SHADER_API_DESKTOP UNITY_COLORSPACE_GAMMA UNITY_ENABLE_DETAIL_NORMALMAP UNITY_ENABLE_REFLECTION_BUFFERS UNITY_LIGHTMAP_FULL_HDR UNITY_LIGHT_PROBE_PROXY_VOLUME UNITY_PBS_USE_BRDF1 UNITY_SPECCUBE_BLENDING UNITY_SPECCUBE_BOX_PROJECTION UNITY_USE_DITHER_MASK_FOR_ALPHABLENDED_SHADOWS
Disabled keywords: FOG_EXP FOG_EXP2 FOG_LINEAR INSTANCING_ON SHADER_API_GLES30 UNITY_ASTC_NORMALMAP_ENCODING UNITY_ENABLE_NATIVE_SHADOW_LOOKUPS UNITY_FRAMEBUFFER_FETCH_AVAILABLE UNITY_HALF_PRECISION_FRAGMENT_SHADER_REGISTERS UNITY_HARDWARE_TIER1 UNITY_HARDWARE_TIER2 UNITY_HARDWARE_TIER3 UNITY_LIGHTMAP_DLDR_ENCODING UNITY_LIGHTMAP_RGBM_ENCODING UNITY_METAL_SHADOWS_USE_POINT_FILTERING UNITY_NO_DXT5nm UNITY_NO_FULL_STANDARD_SHADER UNITY_NO_SCREENSPACE_SHADOWS UNITY_PBS_USE_BRDF2 UNITY_PBS_USE_BRDF3 UNITY_PRETRANSFORM_TO_DISPLAY_ORIENTATION UNITY_UNIFIED_SHADER_PRECISION_MODEL UNITY_VIRTUAL_TEXTURING _ADDITIONAL_LIGHTS _ADDITIONAL_LIGHTS_VERTEX _ADDITIONAL_LIGHT_SHADOWS _DOUBLE_SIDED_LIGHTING _LIGHT_AFFECTS_ADDITIVE _MAIN_LIGHT_SHADOWS _MAIN_LIGHT_SHADOWS_CASCADE _MIXED_LIGHTING_SUBTRACTIVE _RECEIVE_SHADOWS _SHADOWS_SOFT _STRAIGHT_ALPHA_INPUT
Shader error in 'Universal Render Pipeline/Spine/Skeleton': Couldn't open include file 'Packages/com.esotericsoftware.spine.spine-unity/Runtime/spine-unity/Shaders/CGIncludes/Spine-Common.cginc'. at /GameDev/Dungeon Tavern/Library/PackageCache/com.esotericsoftware.spine.urp-shaders@2ef38e4f01/Shaders/Include/SpineCoreShaders/Spine-Common.cginc(2)

Compiling Subshader: 0, Pass: Forward, Fragment program with <no keywords>
Platform defines: SHADER_API_DESKTOP UNITY_COLORSPACE_GAMMA UNITY_ENABLE_DETAIL_NORMALMAP UNITY_ENABLE_REFLECTION_BUFFERS UNITY_LIGHTMAP_FULL_HDR UNITY_LIGHT_PROBE_PROXY_VOLUME UNITY_PBS_USE_BRDF1 UNITY_SPECCUBE_BLENDING UNITY_SPECCUBE_BOX_PROJECTION UNITY_USE_DITHER_MASK_FOR_ALPHABLENDED_SHADOWS
Disabled keywords: FOG_EXP FOG_EXP2 FOG_LINEAR INSTANCING_ON SHADER_API_GLES30 UNITY_ASTC_NORMALMAP_ENCODING UNITY_ENABLE_NATIVE_SHADOW_LOOKUPS UNITY_FRAMEBUFFER_FETCH_AVAILABLE UNITY_HALF_PRECISION_FRAGMENT_SHADER_REGISTERS UNITY_HARDWARE_TIER1 UNITY_HARDWARE_TIER2 UNITY_HARDWARE_TIER3 UNITY_LIGHTMAP_DLDR_ENCODING UNITY_LIGHTMAP_RGBM_ENCODING UNITY_METAL_SHADOWS_USE_POINT_FILTERING UNITY_NO_DXT5nm UNITY_NO_FULL_STANDARD_SHADER UNITY_NO_SCREENSPACE_SHADOWS UNITY_PBS_USE_BRDF2 UNITY_PBS_USE_BRDF3 UNITY_PRETRANSFORM_TO_DISPLAY_ORIENTATION UNITY_UNIFIED_SHADER_PRECISION_MODEL UNITY_VIRTUAL_TEXTURING _ADDITIONAL_LIGHT_SHADOWS _MAIN_LIGHT_SHADOWS _MAIN_LIGHT_SHADOWS_CASCADE _SHADOWS_SOFT _STRAIGHT_ALPHA_INPUT
Shader error in 'Universal Render Pipeline/2D/Spine/Sprite': Couldn't open include file 'Packages/com.esotericsoftware.spine.spine-unity/Runtime/spine-unity/Shaders/Sprite/CGIncludes/ShaderShared.cginc'. at /GameDev/Dungeon Tavern/Library/PackageCache/com.esotericsoftware.spine.urp-shaders@2ef38e4f01/Shaders/Include/SpineCoreShaders/ShaderShared.cginc(2)

Compiling Subshader: 0, Pass: <Unnamed Pass 0>, Fragment program with <no keywords>
Platform defines: SHADER_API_DESKTOP UNITY_COLORSPACE_GAMMA UNITY_ENABLE_DETAIL_NORMALMAP UNITY_ENABLE_REFLECTION_BUFFERS UNITY_LIGHTMAP_FULL_HDR UNITY_LIGHT_PROBE_PROXY_VOLUME UNITY_PBS_USE_BRDF1 UNITY_SPECCUBE_BLENDING UNITY_SPECCUBE_BOX_PROJECTION UNITY_USE_DITHER_MASK_FOR_ALPHABLENDED_SHADOWS
Disabled keywords: INSTANCING_ON PIXELSNAP_ON SHADER_API_GLES30 UNITY_ASTC_NORMALMAP_ENCODING UNITY_ENABLE_NATIVE_SHADOW_LOOKUPS UNITY_FRAMEBUFFER_FETCH_AVAILABLE UNITY_HALF_PRECISION_FRAGMENT_SHADER_REGISTERS UNITY_HARDWARE_TIER1 UNITY_HARDWARE_TIER2 UNITY_HARDWARE_TIER3 UNITY_LIGHTMAP_DLDR_ENCODING UNITY_LIGHTMAP_RGBM_ENCODING UNITY_METAL_SHADOWS_USE_POINT_FILTERING UNITY_NO_DXT5nm UNITY_NO_FULL_STANDARD_SHADER UNITY_NO_SCREENSPACE_SHADOWS UNITY_PBS_USE_BRDF2 UNITY_PBS_USE_BRDF3 UNITY_PRETRANSFORM_TO_DISPLAY_ORIENTATION UNITY_UNIFIED_SHADER_PRECISION_MODEL UNITY_VIRTUAL_TEXTURING USE_SHAPE_LIGHT_TYPE_0 USE_SHAPE_LIGHT_TYPE_1 USE_SHAPE_LIGHT_TYPE_2 USE_SHAPE_LIGHT_TYPE_3 _ADDITIVEBLEND _ADDITIVEBLEND_SOFT _ALPHABLEND_ON _ALPHAPREMULTIPLY_ON _ALPHAPREMULTIPLY_VERTEX_ONLY _ALPHA_CLIP _COLOR_ADJUST _EMISSION _FIXED_NORMALS_MODELSPACE _FIXED_NORMALS_MODELSPACE_BACKFACE _FIXED_NORMALS_VIEWSPACE _FIXED_NORMALS_VIEWSPACE_BACKFACE _LIGHT_AFFECTS_ADDITIVE _MULTIPLYBLEND _MULTIPLYBLEND_X2 _NORMALMAP _RIM_LIGHTING _STRAIGHT_ALPHA_INPUT _TEXTURE_BLEND
T.Fly()
  • Сообщения: 17

Harald

Sorry for the troubles. How exactly did you install the Spine URP shaders UPM package?
Also, how did you install the spine-csharp and spine-unity runtime packages?

Do the files exist in these directories? E.g. do you see a `/GameDev/Dungeon <removed> file in your system file browser, or is it missing? Is the directory perhaps missing read/write access priviledges (actually write access should not be necessary here)?
Аватара пользователя
Harald

Harri
  • Сообщения: 4208

T.Fly()

I installed them in the package manager using the Github URLs via Instal from Github URL.

First I installed Unity Csharp, then URP Shaders package. Because I'm not used to NPM workflow, I installed Spine Unity package last since I missed it at first.

The files are all there in the PackageCache as far as I can tell:





I also have read and write access to the specific directory.
T.Fly()
  • Сообщения: 17

Harald

T.Fly() писал(а):First I installed Unity Csharp, then URP Shaders package. Because I'm not used to NPM workflow, I installed Spine Unity package last since I missed it at first.
Thanks for the additional info. Since I see nothing obviously wrong in the github repository that has any include references going wrong, perhaps the problem really is the order that your UPM package items have been added. Could you please try uninstalling both the Spine URP shaders and the spine-unity UPM packages, and then installing them both again in the normal order (spine-unity before URP shaders)?
Аватара пользователя
Harald

Harri
  • Сообщения: 4208

T.Fly()

I removed everything via package manager and reimported with Instal from GIT URL in the correct order, same result. I also can't repro in a new project with no assets present. Not sure what is up yet.

---

Looks like I solved the issue by installing the runtimes via Unitypackage and by installing the URP shaders from a locally downloaded zip. i.e. I didn't use Install with GIT URL.
T.Fly()
  • Сообщения: 17

Harald

T.Fly() писал(а):I also can't repro in a new project with no assets present. Not sure what is up yet.
Thanks for testing that, it's strange that this leads to no issues. Deleting the library directory would have been one more step that could potentially help, however glad to hear you could resolve the problem in another way.

Whenever the issue pops up again, please feel free to let us know and send us a reproduction Unity project, we would be happy to fix or at least document workarounds for this problem.
Аватара пользователя
Harald

Harri
  • Сообщения: 4208


Вернуться в Unity