Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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 /
avatar image
2
Question by vexe · Mar 03, 2014 at 02:27 AM · bugnullreferenceexception

Project window bugged - NullReferenceException

I just got this, from out of the blue lol

alt text

It happens when I go Right click | Create | MonoBehaviour

Tried closing/reopening the window and restarting unity, didn't help. Restarting Unity does get the window back however, but I still get the error when I create a script file...

It's not just a NullRefExc, it will even prevent scripts from compiling...

Any ideas what to do here? I tried clearing EditorPrefs, no dice.

Using Unity 4.3.3f1 if it helps.

Thanks for any help.

ERROR:

 NullReferenceException: Object reference not set to an instance of an object
 UnityEditor.AssetsTreeViewGUI.SyncFakeItem () (at C:/BuildAgent/work/d3d49558e4d408f4/Editor/Mono/GUI/TreeView/AssetsTreeViewGUI.cs:77)
 UnityEditor.TreeViewGUI.BeginRowGUI () (at C:/BuildAgent/work/d3d49558e4d408f4/Editor/Mono/GUI/TreeView/TreeViewGUI.cs:114)
 UnityEditor.AssetsTreeViewGUI.BeginRowGUI () (at C:/BuildAgent/work/d3d49558e4d408f4/Editor/Mono/GUI/TreeView/AssetsTreeViewGUI.cs:28)
 UnityEditor.TreeView.OnGUI (Rect rect, Int32 keyboardControlID) (at C:/BuildAgent/work/d3d49558e4d408f4/Editor/Mono/GUI/TreeView/TreeView.cs:384)
 UnityEditor.ProjectBrowser.OnGUI () (at C:/BuildAgent/work/d3d49558e4d408f4/Editor/Mono/ProjectBrowser.cs:1712)
 System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/monoAndRuntimeClassLibs/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222)

EDIT:

It seems that the error not just happens when I create a script, but just create anything really from the Create context menu... :/

access to modified closure.png (199.0 kB)
Comment
Add comment · Show 2
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 Jamora · Mar 03, 2014 at 08:11 AM 2
Share

You ventured too deep into Unity and now you broke it.

Have you taken a peek into UnityEditor to see what those methods, namely SyncFakeItem does?

avatar image vexe · Mar 03, 2014 at 09:23 AM 0
Share

Lol that makes sense. No I haven't. Because now I can't even get into Unity, see. :/

2 Replies

· Add your reply
  • Sort: 
avatar image
3
Best Answer

Answer by vexe · Mar 03, 2014 at 10:57 AM

Problem solved! Removed EVERY Unity trace from my system (prefs, registry, files, etc) - Downloaded a fresh installed and reinstalled. Back to work.

EDIT:

So after I re-installed and ran unity successfully, I still got the same error when I create something! BUT GUESS WHAT? - if I change the project window layout to two columns, I won't get any problems! - I seem to get that error when I have a single column! No idea why.

EDIT:

For some reason, that was only happening in that certain project, I moved into a new one and everything's nice and cozy now :)

Comment
Add comment · 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
5

Answer by NaoyaKurihara · Mar 24, 2014 at 03:00 PM

I faced up to similar case, and resolved. Right click on project tree, "Reimport All"

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 vexe · Mar 24, 2014 at 03:07 PM 0
Share

Thanks for sharing!

avatar image chelnok · Aug 10, 2015 at 10:17 PM 0
Share

Thanks. Worked for me.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

22 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

Related Questions

Why am I getting NullReferenceException on my .Contains()? 1 Answer

Can I Ignore Null Reference Exceptions? ( bug? ) 3 Answers

Unity null check 1 Answer

NullReferenceException when looking at target in an Editor class (CustomEditor) 2 Answers

RequireComponent not working! 0 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