Search Unity

Cinemachine errors after updating project to Unity 2020.2

Discussion in 'Cinemachine' started by CaxtNova, Dec 29, 2020.

  1. CaxtNova

    CaxtNova

    Joined:
    Mar 27, 2019
    Posts:
    4
    Recently grabbed an older project on a new PC with Unity 2020.2.1f1, and I get an extensive list of errors relating to Cinemachine including, but not limited to:

    -The type or namespace name 'Utility' does not exist in the namespace 'Cinemachine'
    -The type or namespace name 'CinemachineExtension' could not be found
    -The type or namespace name 'CinemachineComponentBase' could not be found
    -The type or namespace name 'AxisState' could not be found
    -'Cinemachine3rdPersonFollow.IsValid': no suitable method found to override
    -The name 'Documentation' does not exist in the current context

    and so on. I've added Cinemachine 2.6.3 via the Package Manager, and changing between different versions of Cinemachine doesn't appear to have any effect.

    First time updating a project from a version this old (the original project version is probably 2017-2018, so reverting isn't really an option here).

    Any advice would be appreciated, thanks.
     
  2. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,730
    If it's an old project with Cinemachine then it is likely that you have the version from the Asset Store. You must delete this from your Assets before installing the package manager version of CM. So try this:
    1. open a new empty scene
    2. uninstall CM using the package manager
    3. delete the Cinemachine folder from your assets
    4. re-install CM using the package manager
    5. if the errors are still there, close Unity, delete the Library folder, then re-open the project
     
    Last edited: Dec 29, 2020
  3. CaxtNova

    CaxtNova

    Joined:
    Mar 27, 2019
    Posts:
    4
    That fixed it, and step 5 wasn't necessary for my case. Thanks so much!!
     
    Gregoryl likes this.