Search Issue Tracker

Not Reproducible

Votes

4

Found in

2019.2.0b1

2019.2.0b3

Issue ID

1156032

Regression

Yes

Missing Namespace UI error appears when a script tried to use UnityEngine.UI

Scripting

-

After running through a few packages in the Assets Store, loading and unloading packages and DLLs, I got into a state with my project when Unity doesn't recognise "using UnityEditor.UI" in all the scripts in the Google Cloud Vision project.

This does not happen when i freshly install the Google Cloud Vision asset in a fresh new project.

To reproduce the error in the console:
- download this project
- open it with Unity 2019.2.0b3 or 2019.3.0a3 on Windows 10
- notice the compilation errors:
Assets\FrostweepGames\GCSpeechRecognition\Examples\Example\Example.cs(4,19): error CS0234: The type or namespace name 'UI' does not exist in the namespace 'UnityEngine' (are you missing an assembly reference?)

Reproduced with Unity 2019.2.0b3 and 2019.2.0a3
Cannot reproduce in Unity 2019.1.0f2, 2019.3.0a2, 2019.2.0a14

Comments (58)

  1. 58b74a88d251e74ca1f8580b38f69aa7?d=mm

    YodaOnNutella

    Jul 05, 2020 12:17

    Thank you BENFC1993!!!
    amazing, also got rid of 203 errors in log lol

  2. Cb4aae08aa2293aa94d80187cfcec74b?d=mm

    AntonAmpli

    May 25, 2020 14:23

    This issue is still present and the workaround provided in the comment does not work for every one. 2019.3.11.f1

  3. 0f33e457dc98c82128d5cf6ac061b74b?d=mm

    Plysovej_Kaktus

    May 19, 2020 18:30

    BENFC1993 Thank you!!!

  4. Bb122c1352040aacd9765036acf51b58?d=mm

    donnmatch98

    May 17, 2020 20:42

    Issue still a problem, unityengine.ui not showing up

  5. 16c24e1b07b26b1dac67353c038e2af8?d=mm

    tomatohorse

    Apr 02, 2020 19:54

    Thank you BENFC1993, your solution worked for me!

  6. 9d64b57866e287cda7e58c2072f805ac?d=mm

    Keraberas

    Apr 02, 2020 10:52

    Hello, friends. In my case, my colleague had the same error. At the same time, everything was fine with me on the same project. Unity Version 2019.3.1. It turned out that in his repository the submodules had the wrong branches and there was simply a compilation error that caused a compilation error even of Unity libraries. Pay attention to errors when opening a project that occur first. Do not "Clear" in the console. So you will understand where the initial error is located, which launches the entire cascade of subsequent errors. Most likely the error lies in the order of compiling scripts in the Unity engine itself.

  7. C8d8c4442cfad51be698cf8b1029d140?d=mm

    runette_unity

    Mar 24, 2020 11:56

    BTW - Manually forcing an upgrade of Visual Studio Code Editor package to 1.2.0 seems to have solved the problem

  8. C8d8c4442cfad51be698cf8b1029d140?d=mm

    runette_unity

    Mar 24, 2020 11:14

    I just got this as well - 2019.3.6f1 was working OK until I installed a new package and then - bam!

  9. Cb8a7b97d5eebf9e1bbe6e097b24fcce?d=mm

    Trignus

    Mar 22, 2020 06:06

    Same problem here, but I managed to solved it (at least for now). I did what BENFC1993 said, also did this: https://answers.unity.com/questions/1696517/20193-unityengineui-and-vs-code.html (downgrade the version of the Visual Studio Code Editor package), but even all that didn't fix it. So, I downgraded the version of the TextMeshPro Package as well (to 2.0.0), removed it, removed the Unity UI package, and reinstalled both. And after painful minutes, it was all working again. Hope to help someome. I was using version 2019.3.6f1 of Unity.

  10. 4d807c8ef7c57dc78271a8d1aade5831?d=mm

    JackTR55555

    Mar 17, 2020 06:03

    I have the same issue in 2019.3.0f6 PLEASEEEE!!!!

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.