Editor working perfectly one day, next day everything is broken
So, as per the usual, I saved and backed up my URP game.
I use 2020.3.16f1.
Went to open the project this morning using Unity Hub. The first thing i noticed was a warning saying "Unity version does not exist". Then I ignored it and double-clicked.
It popped up with the 'Safe Mode' / 'Ignore' options. Choosing Ignore, this is what I'm met with:
Hundreds of errors referring to 'Library\PackageCache\com.unity.test-framework@1.1.27' etc. etc.
I legitimately don't even know what I need to search to fix this, or what caused it.
For comparison, I opened another project that also uses 2020.3.16f1. That one works fine.
Please help. Tearing my hair out.
Have you tried closing Unity, and deleting the Library-folder, then reopen it from Unity Hub? And why is "Unity version does not exist" co$$anonymous$$g up? Have you double checked the version used in Unity Hub?
Answer by Phorj · Jan 06 at 11:13 PM
I ended up doing the following to make it work:
Remove each package I had installed. Doing so got rid of approx. 100 errors for each package removed.
This screwed my project pretty hard, so I had to:
reinsert each script
rebuild control scheme (I'm using the new input manager and it completely wiped it)
rebuild all materials (they were all completely wiped and had errors)
I have no idea why "Unity version does not exist". It definitely does... I've only been using it for the past 6 months AND can open other projects with it.
I was "lucky" in the sense that I have backups running to my NAS, so I could import some files from the day before which made it significantly less damaging. Also, it was a relatively small project (2 weeks worth) but if this happened to any of my other projects I would have thrown my computer through the window.
This kind of thing (being random bugs) has in the past caused other projects of mine to stall out because I've spent weeks trying to resolve them. Times like this really make me question the stability of Unity.
Your answer
Follow this Question
Related Questions
How do you make the animation window record list type variables? 0 Answers
How to change the text of EditorGUILayout.TextField 2 Answers
Screen flashes black then everything goes white 1 Answer
How to create an Editor for Imported Objects imported from a ScriptedImporter? 1 Answer
Can you configure Unity to use the game tab in a separate window? 0 Answers