Search Unity

Two blank errors on a new project

Discussion in 'Editor & General Support' started by JoshHeng, Dec 17, 2019.

  1. JoshHeng

    JoshHeng

    Joined:
    Feb 11, 2018
    Posts:
    5
    Hi,
    I'm getting two errors without messages on all of my Unity projects (including new ones) which prevent me from running anything:


    In Visual Studio, UnityEngine.UI is also not being recognised as a valid name and all UI classes (e.g. Text) are not being recognised as valid. I can see UnityEngine.UI as a reference in solution explorer however if I click it I get the following error (this doesn't occur with other references):


    My editor log is https://controlc.com/794b1afc
    (pastebin didn't seem to be working)

    I'm running Windows 10 Home and using Visual Studio 2019 Community

    I've tried the following:
    • Updated Visual Studio and Windows
    • Reinstalled Unity and tried both Unity 2019.2.16f1 and 2019.2.14f1
    • Changed build targets between standalone, Web GL, iOS and Android
    • Reset packages and player settings (see below):
    1) Open Package Manager
    2) Under Advanced, select Reset to Default Packages.
    3) Go into Project Settings, Player Settings, and click on the cog wheel in the upper right hand corner.
    4) Select 'Reset'

    I've also tried my projects on my separate Macbook and they run fine on there, so I believe it's just a problem with my PC. This issue only started earlier today, and I had not changed anything before it started apart from coding C# scripts.

    Thanks in advance to anyone who can help
     
  2. JoshHeng

    JoshHeng

    Joined:
    Feb 11, 2018
    Posts:
    5
  3. JoshHeng

    JoshHeng

    Joined:
    Feb 11, 2018
    Posts:
    5
    Reinstalling Unity Hub has fixed the problem