unity engine wont work

when i try to press play, i cant do anything and i get these errors even when i start a new project with nothing in it,these are the three errors that i get when i click play. thank you

InvalidOperationException: Collection was modified; enumeration operation may not execute.
System.Collections.Generic.List1+Enumerator[UnityEditor.EditorWindow].VerifyState () System.Collections.Generic.List1+Enumerator[UnityEditor.EditorWindow].MoveNext ()
UnityEditor.DockArea.OnDestroy () (at C:/BuildAgent/work/d3d49558e4d408f4/Editor/Mono/GUI/DockArea.cs:409)
UnityEditor.EditorApplicationLayout:FinalizePlaymodeLayout()

Invalid editor window UnityEditor.OcclusionCullingWindow
UnityEditor.EditorApplicationLayout:FinalizePlaymodeLayout()
C:/BuildAgent/work/d3d49558e4d408f4/Editor/Mono/GUI/DockArea.cs:409)
UnityEditor.EditorApplicationLayout:FinalizePlaymodeLayout()

GUI Window tries to begin rendering while something else has not finished rendering! Either you have a recursive OnGUI rendering, or previous OnGUI did not clean up properly.

Did you try installing a different (older) version of unity?

2 Answers

2

Try resetting the layout for your workspace. Select a layout from the drop-down in the top right corner

that has worked thanks for that, any ideas why this error happened?

Just happens every once in a while. Sometimes the windows in the editor gui will get messed up and a simple layout reset will fix it. I suggest saving your layout so that you can reset it to what you prefer, and not have to fiddle with it when you reset it.

This man is a hero of the modern age.

Try deleting the Unity folder that came when you downloaded it and re download Unity.

Why stop there? Just reformat the entire hdd, that'll certainly solve the problem.