2D Animation does not work with Unity 2021 LTS

,

Just upgraded Unity to 2021 LTS to support Unity IAP 4.4 and got tons of compilation error messages.

Library\PackageCache\com.unity.2d.animation@7.0.6\Editor\SkinningModule\Triangulation\TriangulationUtility.cs(68,91): error CS1620: Argument 5 must be passed with the 'out' keyword

Library\PackageCache\com.unity.2d.animation@7.0.6\Editor\SkinningModule\Triangulation\TriangulationUtility.cs(68,128): error CS1620: Argument 7 must be passed with the 'out' keyword

Library\PackageCache\com.unity.2d.animation@7.0.6\Editor\SkinningModule\Triangulation\TriangulationUtility.cs(68,162): error CS1620: Argument 9 must be passed with the 'out' keyword

Library\PackageCache\com.unity.2d.animation@7.0.6\Editor\SkinningModule\Triangulation\TriangulationUtility.cs(139,99): error CS1620: Argument 5 must be passed with the 'out' keyword

Library\PackageCache\com.unity.2d.animation@7.0.6\Editor\SkinningModule\Triangulation\TriangulationUtility.cs(139,135): error CS1620: Argument 7 must be passed with the 'out' keyword

Library\PackageCache\com.unity.2d.animation@7.0.6\Editor\SkinningModule\Triangulation\TriangulationUtility.cs(139,168): error CS1620: Argument 9 must be passed with the 'out' keyword

[Package Manager Window] Cannot perform upm operation: Unable to perform online search:
  Request [GET https://packages.unity.com/-/api/search?host=editor&provider=enterprise] failed with status code [502] [NotFound].
UnityEditor.EditorApplication:Internal_CallUpdateFunctions ()

[Package Manager Window] Error searching for packages.
UnityEditor.EditorApplication:Internal_CallUpdateFunctions ()

How to fix this stuff? I tried upgrading 7.0.7 doesn’t change anything. And it seems you guys officially blocked us to not being able to downgrade the packages.

So you want me to wait for you guys to fix it every time if there’s a problem?

1 Like

Ideally you are using source control and you just go revert the change(s) to the Packages/manifest.json file.

If you failed to properly use source control, you can always fire up the previous version of Unity and see what version of that package it likes to work with and use that information to hand-modify your manifest.

I’m sorry you’ve had this issue. Please consider using proper industrial-grade enterprise-qualified source control in order to guard and protect your hard-earned work.

Personally I use git (completely outside of Unity) because it is free and there are tons of tutorials out there to help you set it up as well as free places to host your repo (BitBucket, Github, Gitlab, etc.).

You can also push git repositories to other drives: thumb drives, USB drives, network drives, etc., effectively putting a complete copy of the repository there.

As far as configuring Unity to play nice with git, keep this in mind:

https://discussions.unity.com/t/736093/3

Here’s how I use git in one of my games, Jetpack Kurt:

https://discussions.unity.com/t/807568/3

Using fine-grained source control as you work to refine your engineering:

https://discussions.unity.com/t/826718/2

Share/Sharing source code between projects:

https://discussions.unity.com/t/719810/2

Setting up an appropriate .gitignore file for Unity3D:

https://discussions.unity.com/t/834885/5

Generally setting Unity up (includes above .gitignore concepts):

https://thoughtbot.com/blog/how-to-git-with-unity

It is only simple economics that you must expend as much effort into backing it up as you feel the work is worth in the first place. Digital storage is so unbelievably cheap today that you can buy gigabytes of flash drive storage for about the price of a cup of coffee. It’s simply ridiculous not to back up.

“Use source control or you will be really sad sooner or later.” - StarManta on the Unity3D forum boards

I got the same error, i really hate Unity, I was just trying to do a simple test, and i need a source control, or my project literally will just break? I really don´t get it how people can deal with this >:c

@modernator24 what is the exact Unity version that you are using?

Which package do you want to downgrade and what’s the reason for downgrading?
2D Animation package version is tied to your Unity version. For 2021.3 it’s 7.x.x versions.

Upgrading to the latest 2021.3 should resolved your issues.

If you upgraded 2d.animation to 7.0.7 you may also need to update 2d.common to 6.0.4 as its a dependency package. Could you please let us know the versions of these 2 packages ?

Thanks.