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 (53)

  1. A72baba0e25667cea95537b83c8d4d10?d=mm

    jiuer7845

    Mar 27, 2020 13:02

    http://www.supplyyeezy.us.com/ Yeezy Supply
    http://www.pandorabijouxfr.fr/ Pandora
    http://www.yeezyadidas.fr/ Yeezy
    http://www.airforce1.de/ Air Force 1
    http://www.nikeairforce1.de/ Nike Air Force 1
    http://www.nikeairmax270.de/ Nike Air Max 270
    http://www.kobebryant-jersey.us/ Kobe Bryant Jersey
    http://www.kobebryantjerseysforsale.us/ Kobe Bryant Jerseys For Sale
    http://www.kobebryantjersey24.us/ Kobe Bryant Jersey 24
    http://www.kobebryantwebsiteofficial.us/ Kobe Bryant Website Official
    http://www.pandorasoldes2020.fr/ Pandora Bijoux
    http://www.yeezy-shoe.us.com/ Yeezy
    http://www.yeezymafia.us.com/ Yeezy
    http://www.supplyyeezy.us.com/ Yeezy Shoes
    http://www.nikeshoes.us.org/ Nike Shoes
    http://www.nfl-jerseys.us.org/ NFL Jerseys
    http://www.yeezyboost350.us.com/ Yeezy Boost 350
    http://www.yeezy350.us.com/ Yeezy
    http://www.yeezy-shoes.in.net/ Yeezy Shoes
    http://www.yeezys.me.uk/ Yeezy
    http://www.yeezy-350.org.uk/ Yeezy
    http://www.yeezy350.org.uk/ Yeezy 350
    http://www.yeezys.us.com/ Yeezy
    http://www.yeezy.com.co/ Yeezy Shoes
    http://www.adidasyeezy.us.com/ Adidas Yeezy
    http://www.yeezy700.org.uk/ Yeezy 700
    http://www.yeezyboost350v2.de/ Yeezy Boost 350 V2
    http://www.nikeoutletstoreonlineshopping.us/ Nike Outlet
    http://www.yeezy-shoes.in.net/ Yeezy Shoes
    http://www.mlbshop.us.com/ MLB Shop
    http://www.adidasyeezy.de/ Adidas Yeezy
    http://www.mlbjerseys.us.com/ MLB Jerseys
    http://www.yeezy380.us/ Yeezy 380
    http://www.yeezy380.us.com/ Yeezy 380
    http://www.nikefactory.us.com/ Nike Outlet
    http://www.humanraces.us.com/ Human Races
    http://www.humanracesshoes.us/ Human Race Shoes
    http://www.uggs-officialsite.org/ Uggs Official Site
    http://www.pandoraonline-shop.de/ Pandora
    http://www.basketball-jerseys.us.com/ Basketball Jerseys
    http://www.jerseysbasketball.us/ Basketball Jerseys
    http://www.jerseys-nba.us/ Cheap NBA Jerseys
    http://www.nikes-shoes.us.com/ Nike Outlet
    http://www.pandoraoutletcanada.ca/ Pandora Canada
    http://www.pandora-charms.org/ Pandora Charms
    http://www.jewelrypandora.org/ Pandora Jewelry
    http://www.pandora-outlet.us.org/ Pandora Outlet
    http://www.pandorajewelryofficialwebsite.us.com/ Pandora Jewelry Official Site
    http://www.mlbjerseysofficial.us.com/ MLB Jerseys
    http://www.pandoras.fr/ Pandora
    http://www.pandorabijouxfr.fr/ Pandora Bijoux
    http://www.yeezyadidas.fr/ Adidas Yeezy
    http://www.pandorasoldes2020.fr/ Pandora Soldes 2020
    http://www.yeezy-shoe.us.com/ Yeezy Shoes
    http://www.yeezymafia.us.com/ Yeezy Mafia
    ウレ

  2. 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

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

  4. 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.

  5. 4d807c8ef7c57dc78271a8d1aade5831?d=mm

    JackTR55555

    Mar 17, 2020 06:03

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

  6. 65d9e53cd25882c7993e4461a305026d?d=mm

    benfc1993

    Mar 06, 2020 19:44

    All you need to do to fix this is got to Edit > Preferences > External Tools make sure the 'Generate all .csproj files.' is checked the in your IDE delete the:

    Assembly-CSharp-Editor.csproj
    Assembly-CSharp.csproj
    Ecology.sln

    files in the root of your project.

    Close and reopen vscode.

  7. 92f2a4937e3b3e5a060e948d46488268?d=mm

    luispuertolas

    Feb 21, 2020 22:51

    I installed UnityEngine.UI with Nuget from Visual Studio

    https://www.nuget.org/packages/Unity3D.UnityEngine.UI/

    This solved it for me.

  8. 6093cdeac08d162c5dd5089762c3c0d9?d=mm

    iklein

    Feb 09, 2020 14:57

    I can confirm the same issue going from 2019.2 to .3. The workaround referenced at https://answers.unity.com/questions/1696517/20193-unityengineui-and-vs-code.html worked for me as well.

  9. 0efccffcff4a578829abf9b6179f198e?d=mm

    studentutu

    Feb 06, 2020 09:38

    Also in the release 2019.3 - here is a quick workaround - https://answers.unity.com/questions/1696517/20193-unityengineui-and-vs-code.html

  10. 390dd9dc4ba93548f2d18409900001a3?d=mm

    grena

    Feb 04, 2020 14:56

    Same issue on 2019.3.0f6.

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.