I am having an issue in Unity where every time I launch the editor it asks me to enter in safe mode because there are a lot of errors and when I press ignore it launches and I can see in the console a lot of errors with the UI and I found out that I cant create UI elements directly in the hierarchy. I tried to update from 2020.3.13f1 to 2020.3.14f1 and for the first launch everything was fine, with no errors, and I could create UI elements but then when I restarted to make sure everything was actually fine, all the errors popped up again and I cant create UI. Why does this happen and does anyone have a fix because I can't find it anywhere online.
-
Safe mode is not intended to be used to work on your game, it's created [solely for resolving script compilation errors](https://docs.unity3d.com/2020.2/Documentation/Manual/SafeMode.html). You would need to fix your script errors before you can edit your project. – dimitar.bogdanov Jul 23 '21 at 15:19
-
I don't think its a script compilation error because the errors give out the namespace UnityEngine.UI doesn't exist, than it loads for 5-10 min and all the errors are gone. – Denis Blisceac Jul 23 '21 at 16:22
-
1Sounds like something went awry with your initial installation of Unity. Did you just recently install Unity and then saw this issue? You may want to consider uninstalling Unity completely and reinstalling it. This may be quite a nightmare to troubleshoot otherwise. – MoreFoam Jul 23 '21 at 16:28
-
Denis, have you looked in Editor.log? (you share it)? In that log you may find more details about what went wrong. – Vagaus Jul 23 '21 at 20:06
5 Answers
Try not to enter Safe Mode. Enter the editable project. There go to Assets-Reimport All.
It did it to me too, it's probably a Unity bug, this method fixes it. Practically it reimports the whole project by itself, avoiding that the bug gives you problems (such as those like UnityEngine.UI does not exist or Monobehavior does not exist, etc.)
Obviously you will not lose any assets and everything will be fine as before receiving the errors.

- 603
- 1
- 4
- 25
-
Thank you so much, it worked. I even did some restarts to make sure and I got no errors anywhere and the UI tab in the hierarchty is always there. – Denis Blisceac Jul 24 '21 at 19:21
Have this issue with any template 2020+ versions Always shows 2 empty errors on console at first run ,even on an empty project
Will try to install 2019 and hopefully work again

- 341
- 1
- 2
- 10
in my case some side app ran caused some error in the installation of Unity. Nothing amid aboves helped.
Thus I decided to fully reinstall it from scratch to default one. Now it worksok. But before that . To wipe out the Unity thorowly you need in:
- uninstalling Unity and UnityHub in windows' settings
- remove all related/remained folders in "C:\Program Files"
- remove related/remained folders in "C:\Users\myname\AppData\Local "
- in Register Editor go to clean unity like folders in "Computer\HKEY_CURRENT_USER\SOFTWARE"
- optionally, remove sample projects in "C:\Users\myname"

- 3,672
- 2
- 41
- 29
I recently installed unity hub on my linux laptop and installed the unity editor but when i created a new project, i was given two compilation errors that had no name or details.
You're very likely simply opening the wrong folder, it's a common mistake
Or, you have possibly moved around the folders that you cannot move
Also - it's a nuisance but it's best to install the "hub"

- 27,874
- 70
- 431
- 719
-
How can you open `the wrong folder`? Unity only lets you open a project if you actually open a project ^^ – derHugo Jul 24 '21 at 16:45
-
cheers @derHugo - you know I don't remember the precise details (and indeed it may have changed) but this used to be a "thing" at one point w/ Unity .. it was something to do with, if you had copied a folder or such – Fattie Jul 24 '21 at 19:24