T.Fly()







When I try to copy Examples folder from PackageCache to Assets, I get a bunch of warnings. And when opening the copied URP Outline example scene, it's lost references to SkeletonData assets amongst other things and is not playable.
T.Fly()
  • Posts: 17

Misaki

Sorry for the confusing. Please copy only the scene files, not the entire folder. Other files can be left in the Library folder.
User avatar
Misaki

Misaki
  • Posts: 837

Harald

Sorry for the troubles. Unfortunately this is a rather annoying bug (or limitation) of later Unity versions.
If you encounter any problems, please always first check the spine-unity documentation, which describes the solution for exactly this problem in the FAQ section:
spine-unity Runtime Documentation: Import
spine-unity Runtime Documentation: Alternative Installation via Package Manager
User avatar
Harald

Harri
  • Posts: 4164

T.Fly()

Misaki wrote:Sorry for the confusing. Please copy only the scene files, not the entire folder. Other files can be left in the Library folder.
I tried copying just the scene file to Assets directory in a completely new Unity 2021.3.6f1 project with the same result - a bunch of missing script and skeleton data asset dependencies.



---

Harald wrote:Sorry for the troubles. Unfortunately this is a rather annoying bug (or limitation) of later Unity versions.
If you encounter any problems, please always first check the spine-unity documentation, which describes the solution for exactly this problem in the FAQ section:
spine-unity Runtime Documentation: Import
spine-unity Runtime Documentation: Alternative Installation via Package Manager
I'll look into it, thanks.

---

Copying the "URP 2D Shaders" scene went a little bit better since it actually runs but it displays weirdly:

The test project is set to URP 2D renderer using the new 2D URP template.

It also doesn't let me change the shader:



---

Installing from a locally downloaded .zip let me access the scenes directly from Library/PackageCache. This also appears to have solved dependency issues but the visual blue box artifacts remain a problem.
T.Fly()
  • Posts: 17

Harald

T.Fly() wrote:I tried copying just the scene file to Assets directory in a completely new Unity 2021.3.6f1 project with the same result - a bunch of missing script and skeleton data asset dependencies.
Thanks for posting the additional screenshots. The problem with the missing scripts at the Outline Shaders URP scene is that it uses some existing example scripts from the spine-unity-examples package. To resolve the missing script problems, please install this example package as well, as listed on the download page:
spine-unity Download: Download
To save you some time, the git URL is as follows: https://github.com/EsotericSoftware/spine-runtimes.git?path=spine-unity/Assets/Spine Examples#4.1
T.Fly() wrote:Copying the "URP 2D Shaders" scene went a little bit better since it actually runs but it displays weirdly:
[..]
The test project is set to URP 2D renderer using the new 2D URP template.
Your project has the wrong Universal Render Pipeline Asset assigned in the project settings under Graphics - Scriptable Render Pipeline Settings, it's using the default Unity 2D URP asset. Please use the provided Example 2D URP Asset for the URP 2D Shaders example scene which is located in the same folder (or the 3D counterpart Example URP Asset for the URP 3D Shaders example scene). This Example 2D URP Asset has the rim light mask channels properly setup, without them the blue rim-light will not be masked and will be applied to all pixels.

I will add some description text to the example scenes which point out these pitfalls and the respective solution. Thanks for reporting!

---

We've added text remarks in both the URP 2D Shaders and Outline Shaders URP scenes accordingly. Hopefully this will prevent future troubles.
A new URP shaders UPM package is available for download here as usual:
spine-unity Download
User avatar
Harald

Harri
  • Posts: 4164


Return to Unity