UnityEngine.UI missing

Hi all,

I am experiencing some issues when trying to compile my scripts into a dll.
In previous versions I usually use “using UnityEngine.UI” and “using UnityEngine.EventHandler” but with the last update (4.6.1 f1), compilation action fails due it can’t find the namespace.

What’s wrong here? Do I need to change the path?

Thanks in advance.

Might it be related to the problem in this link, by any chance? UnityEngine.UI.dll is in timestamps but is not known in assetdatabase - Unity Engine - Unity Discussions

Hi,

Thanks for your reply.
After a few time of investigation, I found the problem was UI DLL directories.
Each new version Unity staff releases, new Folder name for UnityEngine.UI.dll and UnityEditor.UI.dll has and I have to change the path to them.

Thanks.

1 Like

I know it’s been a little bit but I have the same problem. How did you solve it

Easy solution that works 100%:

go to Edit > Preferences > External Tools make sure the ‘Generate all .csproj files.’ is checked

close Unity
delete all csproj and sln files in your folder
open Unity