• Unity
  • Struggling to install timeline package

Hi Spine team,

Have managed to upgrade my project to use the spine-unity package 3.8.

Now just struggling to get the Timeline Extensions UPM package to play ball. I feel like i'm close though!

As you can see in my screenshot, i'm having a lot of namespace issues, similiar to ones I had upgrading to 3.8 but with those there was lots of useful documentation on what to update things to.

Any help much appreciated, spent a good bit of time tinkering around on this before reaching out, so please let me know if anybody has any suggestions!

ʕ•ᴥ•ʔ

Related Discussions
...

I feel like I had a similar issue two months ago when I initially setup the Timeline URP.

I could be totally wrong, but I feel like it had something to do with how a Unity package can either be embedded in the project (aka within the project's Packages folder), or it can be in a reference folder that is accessed by individual projects (don't know where that reference folder is).

So take my suggestion with a grain of salt, but might be worth trying this either way:
1) Open your project and delete the package from the Packages area, aka Packages > Spine Timeline Extensions
2) Close your project.
3) Find your project folder (in windows explorer) and open the ProjectName/Packages folder
4) Download the package (unzip if necessary) and drag it into that folder like this:

5) Now re-open your project and see if everything is linked up.

Also, obviously make sure that you have the same/correct version of Spine-Unity itself. AKA If you have the 3.7 version of Spine then the 3.8 version of the Timeline URP won't work

Thanks for the tips @Jamez0r.

I had actually already done exactly as you had suggested, though I wish i'd asked you earlier as it took me a few hours of trial and error to get to the situation that you have laid out above!

So I alternatively just tried putting the Timeline URP back in my assets folder and then pointing my project to the right place via the package manager, and it actually works exactly the same as when it's in the root packages folder. (as in same errors)

So at least it seems that it isn't just a directory problem, however that still doesn't solve my namespace issue, as I still can't build!

I have double checked that i've got the right versions, both are the latest (non-beta) versions from here: http://esotericsoftware.com/spine-unity-download#Updating-an-existing-UPM-package

If anybody else has managed to install these successfully, it'd be super handy if I could see that somebody elses namespaces are working and then try to work our why mine are borked!

Thanks again ʕ•ᴥ•ʔ

We are sorry for the troubles. And thanks @Jamez0r for chiming in and sharing helpful info!
I just tried to reproduce your problem by extracting the latest Timeline UPM extension package into the Packages directory of a new empty project with only the latest 3.8 Spine unitypackage in it, however it worked without any errors.

Which Unity version are you using?

Did you perhaps modify or remove the Spine .asmdef files (Assets/Spine/Runtime/spine-unity.asmdef and Assets/Spine/Editor/spine-unity-editor.asmdef)? Or are you using 2D Toolkit (TK2D) and have enabled TK2D support via the Spine preferences menu?
Is your spine-untiy runtime unmodified, in terms of none of the .cs code files edited?

So I alternatively just tried putting the Timeline URP back in my assets folder and then pointing my project to the right place via the package manager,

UPM packages are rather not intended to be placed in the <project>/Assets directory, you should either put it in the <project>/Packages' directory where it is automatically loaded, or anywhere outside of<project>/Assetsand then pointing the package manager to the.json` file as described here:
spine-unity Runtime Documentation: Optional Installing Extension UPM Packages

Thanks for checking @Harald.

I've actually just fixed it - apologies I think it was my fault in the end :tear: Think ultimately it was a namespace clash that I couldn't hunt down.

We had some very old spine files kicking about, I was trying to in-place upgrade spine to 3.8 when really it required me blitzing my old files and starting from scratch.

Had quite a bit of rejigging + re-exporting to do with our files afterwards, but meant that I could install the timeline tools successfully.

Of course, I now have a follow up question :grinteeth: , but i'll have another crack at fixing it on my own and if needed I'll post a new forum question to keep things organised.

Thanks again both for your input.

Thanks for getting back to us and sharing the background info, this might help others along the way.