Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
  • Help Room /
This question was closed Jul 23, 2016 at 09:36 AM by NoseKills for the following reason:

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

avatar image
0
Question by silverxah · Jul 21, 2016 at 10:25 PM · error messagevariablesassign

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.

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

3 Replies

  • Sort: 
avatar image
0

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?

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image silverxah · Jul 22, 2016 at 06:46 PM 0
Share

Edit #2: Error is back.

avatar image silverxah · Jul 22, 2016 at 06:55 PM 0
Share

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)

avatar image
0

Answer by ClearRoseOfWar · Jul 22, 2016 at 06:58 PM

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

Comment
Add comment · Show 4 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image silverxah · Jul 22, 2016 at 08:43 PM 0
Share

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.

avatar image ClearRoseOfWar · Jul 22, 2016 at 08:45 PM 0
Share

$$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

avatar image silverxah ClearRoseOfWar · Jul 22, 2016 at 10:26 PM 0
Share

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.

avatar image ClearRoseOfWar silverxah · Jul 22, 2016 at 11:16 PM 0
Share

Try removing all editor scripts and adding them in one by one.

avatar image
0

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!

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image silverxah · Jul 22, 2016 at 10:32 PM 0
Share

Ok when's the next Unity version co$$anonymous$$g out lol

Follow this Question

Answers Answers and Comments

64 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

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


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges