So I was just doing my own thing about to edit a script when errors appeared all over the place. My game still runs fine with these errors and unity does not recognize these errors. I have never seen something like this before and i’m not sure what I did haha
This is just an example of what is happening in all of my scripts /
I’ve had this happen. It’s definitely a VS problem. Haven’t seen it lately, maybe the newer versions handle things better. I think restarting VS has fixed it before, but can’t recall exactly, it’s been awhile. Annoying for sure.
What ended up fixing it was going into my unity project file and deleting the library file then re-opening my project. This is odd because i thought it was a problem with visual studio like you said but I guess not.
On that note, if you ever need to make a zip of your Unity project, delete the Library folder first (it will be regenerated). This folder is often many times larger than the rest of the project, so it saves tons of time and disk space.