Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Bugs after updating to 2019 from 2018 version

Discussion in 'Editor & General Support' started by oscarKro, May 25, 2019.

  1. oscarKro

    oscarKro

    Joined:
    Jan 13, 2019
    Posts:
    6
    Hey guys,

    I haven't been developing my game for a while. I figured i'll pick it back up again. I opened Unity and it told me there was a new update to the 2019 version (came from the latest 2018 version I believe). So i downloaded Unity hub, downloaded the 2019 version, reopend my game, and all of a sudden, I can't compile anymore because of this error (and some others).
    Library\PackageCache\com.unity.2d.common@1.0.11-preview.1\Runtime\InternalBridge\InternalEngineBridge.cs(1,32): error CS0234: The type or namespace name 'UIElements' does not exist in the namespace 'UnityEngine.Experimental' (are you missing an assembly reference?)

    It seems they changed some namespaces or whatever. Anyone know's what to do? I can't figure it out by myself. I really hope it can be fixed, it was a very big game already and i'm not feeling to start from scratch again

    greets,

    Oscar
     
  2. Homicide

    Homicide

    Joined:
    Oct 11, 2012
    Posts:
    637
    I highly recommend avoiding 2019 atm, if you are at all serious about your work. its loaded with alot of issues that can break alot of things.
     
  3. better_walk_away

    better_walk_away

    Joined:
    Jul 12, 2016
    Posts:
    291
  4. oscarKro

    oscarKro

    Joined:
    Jan 13, 2019
    Posts:
    6
    Ooh... that's to bad... I'm an embedded programmer and I only program games for fun in my spare time. In other words, I don't have a lot of experience with Unity. Can I still download 2018.4 and reverse it back to that build? Thanks for replying.
     
  5. IronLionZion

    IronLionZion

    Joined:
    Dec 15, 2015
    Posts:
    78
    Open the package manager and update all out of date packages that your project uses, including preview packages as well.
     
    CrazyPhysics and rahul20dec like this.
  6. Joe-Censored

    Joe-Censored

    Joined:
    Mar 26, 2013
    Posts:
    11,847
    Your issue is because UIElements is no longer an experimental feature. You'll need to change your code so it points to UIElements' new home, which obviously is not going to be in the UnityEngine.Experimental namespace.

    https://unity3d.com/unity/whats-new/2019.1.0
    Also, you shouldn't be just upgrading Unity versions without considering the costs. You should have a good reason for doing so, and seeing a popup about a new version isn't that.

    Lastly, why are you concerned you'd need to start over from scratch? Are you not even backing up your own work? Worst case should be you just revert your most recent changes.
     
    Last edited: May 31, 2019
  7. ammirea

    ammirea

    Joined:
    Oct 22, 2018
    Posts:
    8
    Just delete "Library". It worked for me.
     
  8. rahul20dec

    rahul20dec

    Joined:
    Jul 8, 2018
    Posts:
    9
    I updated package manager's version in manifest.json and the error disappeared.
    Before:
    "com.unity.package-manager-ui": "2.0.8",
    After:
    "com.unity.package-manager-ui": "2.1.2",
     
  9. CrazyPhysics

    CrazyPhysics

    Joined:
    Apr 20, 2017
    Posts:
    4
    Thanks! Worked for me!