Variable Never Used Stopping Game From Running

I know that the solution to these errors is to simply delete the unused variable, but the problem is that I am still testing my script and I have A LOT of unused variables across multiple scripts mainly cause the part that uses them is commented out. What is really pissing me off is that normally these errors still allow the game to play but FOR SOME REASON UNITY DECIDED TO FIX THAT. Any ideas?
And for the Error Pause option, that option was always on. The error is now coming up as compiler errors.
Thanks.

3 Answers

3

Edit; Deleted a bunch of Microsoft references and commented out some code that attempted to create Excel files and that somehow fixed it. What’s going on?

Edit #2: Error is back.

Im sorry for asking this, but have you tried restarting unity?

By restarting do you mean shutting down the program and starting it up again? If so, yes. If you mean saving the scripts into a text file and completely uninstalling the engine and reinstalling it, no but I'm pretty much at that point.

Maybe its an editor script doing this? it looks like it is... Remove your editor folder in your main assets folder and then paste it back in after unity has had a chance to update. If that still doesn't fix it, do the same steps, but instead close unity EDIT: BEFORE you paste the edior scripts bac in

@ChristianSimon completely random in editor. some times it happens once in a run. Sometimes not at all. In the built version.. it happens almost every time 8/10 times when loading between scenes. I am using unity 5.3.5f1 and the latest PUN version. and im using SceneManager. I acts like when it exits to lobby than reloads a scene it gets an abnormal disconnection when the websocket tries informing the server. Thank you for any help.

i reccommend to find out how to get a older version (DO NOT OPEN THE GAME) and convert to that, then re-convert to newer version. This should work by theroy, or just wait for the newest update!

Ok when's the next Unity version coming out lol