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. Dismiss Notice

Suddenly my project UnityEngine.UI elements are gone

Discussion in 'Editor & General Support' started by CDAfonso, Jan 21, 2020.

  1. CDAfonso

    CDAfonso

    Joined:
    Sep 16, 2019
    Posts:
    26
    Hello..

    My project UI elements suddenly are gone and i get this type of errors:

    Code (CSharp):
    1.  error CS0234: The type or namespace name 'UI' does not exist in the namespace 'UnityEngine' (are you missing an assembly reference?)
    error CS0234: The type or namespace name 'UI' does not exist in the namespace 'UnityEngine' (are you missing an assembly reference?)

    I allready tried:
    • Resarting Computer / Restarting Unity
    • Deleting Library folder
    • Coping UnityEngine.Ui DLL to Library\ScriptAssemblies (It allways get deleted)
    • Removing Unity.UI and Re-Instaling in Package Manager
    And i cant get the problem solved.

    When i start a new project, the UI elements works.
     
  2. CDAfonso

    CDAfonso

    Joined:
    Sep 16, 2019
    Posts:
    26
    Anyone? My Unity version: 2019.2.18f1
     
  3. avinashnx

    avinashnx

    Joined:
    Aug 10, 2018
    Posts:
    4
    Assets > Reimport All

    This solves the issue but no idea what causes the issue and it's time consuming (in case of big project).