Just installed some Visual Studio Update - now all scripts from Unity aren’t recognized, lots of red errors.
Does anyone know what happened and how to fix it?
Tried reinstalling Unity Tools via Visual Studio Installer, but didn’t help. Also changing Visual Studio version in Unity and back doesn’t fix the problem.
This may help you with intellisense and possibly other Visual Studio integration problems:
Sometimes the fix is as simple as doing Assets → Open C# Project from Unity. Other times it requires more.
Other times it requires you also nuke the userprefs and .vsconfig and other crufty low-value high-hassle files that Visual Studio tends to slowly damage over time, then try the above trick.
Barring all that, move on to other ideas:
Also, try update the VSCode package inside of Unity: Window → Package Manager → Search for Visual Studio Code Editor → Press the Update button
Thank you guys. It turned out the problem occurred after giving the project too long folder name. Everything else worked, Unity as well, just not the newest Visual Studio. After changing the name of the project’s folder to shorter one, all is fixed.