I use Unity 2019.4.13f1 and URP.
In Spine3.8-2020-10-28's CHANGELOG.md, i see "Now supporting Universal Render Pipeline (URP)..."
I install the spine-unity in the follow steps:
- clone the spine-runtimes git repository
- copy the spine-unity to an arbitrary directory
- copy the spine-csharp to the spine-unity's csharp folder
- install spine-unity by Unity Package Manager
Then I install the module com.esotericsoftware.spine.urp-shaders. After the package imported, the unity shows an error:
Shader error in 'Universal Render Pipeline/Spine/Skeleton Lit': failed to open source file: 'Assets/Spine/Runtime/spine-unity/Shaders/Sprite/CGIncludes/ShaderShared.cginc' at /UMP Packages/spine-unity/Modules/com.esotericsoftware.spine.urp-shaders/Shaders/Include/SpineCoreShaders/ShaderShared.cginc(2) (on d3d11)
Compiling Vertex program with UNITY_PASS_SHADOWCASTER
Platform defines: UNITY_ENABLE_REFLECTION_BUFFERS UNITY_USE_DITHER_MASK_FOR_ALPHABLENDED_SHADOWS UNITY_PBS_USE_BRDF1 UNITY_SPECCUBE_BOX_PROJECTION UNITY_SPECCUBE_BLENDING UNITY_ENABLE_DETAIL_NORMALMAP SHADER_API_DESKTOP UNITY_COLORSPACE_GAMMA UNITY_LIGHT_PROBE_PROXY_VOLUME UNITY_LIGHTMAP_FULL_HDR
I found the reason by opening the file "ShaderShared.cginc" , it said i need to adapt the path:
// Adapt this path accordingly if you have unpacked the Spine directory to another location.
#include "Assets/Spine/Runtime/spine-unity/Shaders/Sprite/CGIncludes/ShaderShared.cginc"
I dont have the file because i install spine-unity by git repository and Unity Package Manager.
If i install spine-unity by .unitypackage. I have the correct .cginc file.
So the solution is i have to install by .unitypackage.
But in the CHANGELOG.md file , it said i can install spine by UPM. Is it a problem?
[b]Installation:[/b] You can download the Unity Package Manager (UPM) package via the [download page](http://esotericsoftware.com/spine-unity-download) or find it in the [spine-runtimes/spine-unity/Modules](https://github.com/EsotericSoftware/spine-runtimes/tree/3.8-beta/spine-unity/Modules) subdirectory on the git repository. You can then either unzip (copy if using git) the package to
a) the `Packages` directory in your project where it will automatically be loaded, or
b) to an arbitrary directory outside the Assets directory and then open Package Manager in Unity, select the `+` icon, choose `Add package from disk..` and point it to the package.json file.
The Project panel should now show an entry `Spine Timeline Extensions` under `Packages`. If the directory is not yet listed, you will need to close and re-open Unity to have it display the directory and its contents.