Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Bug 2D Animation does not work with Unity 2021 LTS

Discussion in '2D' started by modernator24, Sep 10, 2022.

  1. modernator24

    modernator24

    Joined:
    Apr 7, 2017
    Posts:
    186
    Just upgraded Unity to 2021 LTS to support Unity IAP 4.4 and got tons of compilation error messages.

    Code (CSharp):
    1. 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
    2.  
    3. 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
    4.  
    5. 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
    6.  
    7. 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
    8.  
    9. 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
    10.  
    11. 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
    12.  
    13. [Package Manager Window] Cannot perform upm operation: Unable to perform online search:
    14.   Request [GET https://packages.unity.com/-/api/search?host=editor&provider=enterprise] failed with status code [502] [NotFound].
    15. UnityEditor.EditorApplication:Internal_CallUpdateFunctions ()
    16.  
    17. [Package Manager Window] Error searching for packages.
    18. UnityEditor.EditorApplication:Internal_CallUpdateFunctions ()
    19.  
    20.  
    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?
     
    Last edited: Sep 11, 2022
    Unrighteouss likes this.
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    38,520
    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://forum.unity.com/threads/prefab-links-keep-getting-dumped-on-git-pull.646600/#post-7142306

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

    https://forum.unity.com/threads/2-steps-backwards.965048/#post-6282497

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

    https://forum.unity.com/threads/whe...grammer-example-in-text.1048739/#post-6783740

    Share/Sharing source code between projects:

    https://forum.unity.com/threads/your-techniques-to-share-code-between-projects.575959/#post-3835837

    Setting up an appropriate .gitignore file for Unity3D:

    https://forum.unity.com/threads/removing-il2cpp_cache-from-project.1084607/#post-6997067

    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
     
  3. Castro1709

    Castro1709

    Joined:
    Jan 20, 2022
    Posts:
    1
    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
     
  4. MarekUnity

    MarekUnity

    Unity Technologies

    Joined:
    Jan 6, 2017
    Posts:
    203
    @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.
    upload_2022-10-12_14-53-37.png

    Upgrading to the latest 2021.3 should resolved your issues.
     
    Last edited: Oct 12, 2022
  5. Venkify

    Venkify

    Unity Technologies

    Joined:
    Apr 7, 2015
    Posts:
    638
    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.