You don't give any info that would make it possible for someone to actually figure out why your problem happens. Null ref errors (that you mention in the comments) always happen for a reason
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.
Answer by silverxah · Jul 21, 2016 at 10:44 PM
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?
O$$anonymous$$ Unity decided to completely screw my settings. Now I'm getting these errors which weren't there yesterday and I haven't even changed the code in two days...
$$anonymous$$issingReferenceException: The object of type 'Object' has been destroyed but you are still trying to access it. Your script should either check if it is null or you should not destroy the object. UnityEditor.Editor.IsEnabled () (at C:/buildslave/unity/build/Editor/$$anonymous$$ono/Inspector/Editor.cs:589) UnityEditor.InspectorWindow.DrawEditor (UnityEditor.Editor editor, Int32 editorIndex, Boolean rebuildOptimizedGUIBlock, System.Boolean& showImportedObjectBarNext, UnityEngine.Rect& importedObjectBarRect) (at C:/buildslave/unity/build/Editor/$$anonymous$$ono/Inspector/InspectorWindow.cs:1151) UnityEditor.InspectorWindow.DrawEditors (UnityEditor.Editor[] editors) (at C:/buildslave/unity/build/Editor/$$anonymous$$ono/Inspector/InspectorWindow.cs:1028) UnityEditor.InspectorWindow.OnGUI () (at C:/buildslave/unity/build/Editor/$$anonymous$$ono/Inspector/InspectorWindow.cs:352) System.Reflection.$$anonymous$$ono$$anonymous$$ethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/$$anonymous$$ono$$anonymous$$ethod.cs:222)
Answer by ClearRoseOfWar · Jul 22, 2016 at 06:58 PM
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.
$$anonymous$$aybe 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 ins$$anonymous$$d close unity EDIT: BEFORE you paste the edior scripts bac in
First option didn't work, but I deleted the entire Editor folder and then restarted Unity and it's O$$anonymous$$ for now. (Can I post direct screenshots on these forums or do I have to save SS's as images first). No clue why that worked because the Editor folder has been around for weeks. Edit: Pasted the Editor folder back into the assets folder after starting Unity. No "Red" errors so far.
Try removing all editor scripts and adding them in one by one.
Answer by Dog-Gamer · Jul 22, 2016 at 08:51 PM
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 co$$anonymous$$g out lol
Follow this Question
Related Questions
Cant Change lighting/scene variables,Cant Change Lighting Properties 0 Answers
Prefabs holding variables,How to carry accross game objects to prefabs 1 Answer
Use of unassigned local variable 'startPos' " & " Use of unassigned local variable 'endPos' 1 Answer
What do I do when This error shows up ? 1 Answer
Is there a way to assign variables before Awake() is triggered 3 Answers