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 /
This post has been wikified, any user with enough reputation can edit it.
avatar image
0
Question by Memige · Oct 18, 2012 at 08:44 PM · erroreditornull reference

Internal_DrawMeshNow2 Error

Hey everyone, I'm at a bit of a loss on this. I'll post the stack below, but this started happening in the editor after I reverted a change in one of my custom editor scripts.

Specifically, I had a line that read:

 Object[] objects = FindObjectsOfType(typeof(UnityEngine.Object));

Trying to find some missing objects I changed it to:

 Object[] objects = Resources.FindObjectsOfTypeAll(typeof(UnityEngine.Object));

This successfully ran, but didn't really accomplish what I wanted so I reverted it back to:

 Object[] objects = FindObjectsOfType(typeof(UnityEngine.Object));

This compiles, however, now whenever I select anything in the editor I get the following error:

 NullReferenceException
 UnityEngine.Graphics.Internal_DrawMeshNow2 (UnityEngine.Mesh mesh, Matrix4x4 matrix, Int32 materialIndex) (at C:/BuildAgent/work/14194e8ce88cdf47/Runtime/ExportGenerated/Editor/Graphics.cs:2335)
 UnityEngine.Graphics.DrawMeshNow (UnityEngine.Mesh mesh, Matrix4x4 matrix) (at C:/BuildAgent/work/14194e8ce88cdf47/Runtime/ExportGenerated/Editor/Graphics.cs:2326)
 UnityEditor.Handles.ConeCap (Int32 controlID, Vector3 position, Quaternion rotation, Single size) (at C:/BuildAgent/work/14194e8ce88cdf47/Editor/MonoGenerated/Editor/EditorHandles.cs:232)
 UnityEditor.Handles.ArrowCap (Int32 controlID, Vector3 position, Quaternion rotation, Single size) (at C:/BuildAgent/work/14194e8ce88cdf47/Editor/MonoGenerated/Editor/EditorHandles.cs:327)
 UnityEditorInternal.Slider1D.Do (Int32 id, Vector3 position, Vector3 direction, Single size, UnityEditor.DrawCapFunction drawFunc, Single snap) (at C:/BuildAgent/work/14194e8ce88cdf47/Editor/Mono/EditorHandles/Slider1D.cs:84)
 UnityEditor.Handles.Slider (Vector3 position, Vector3 direction, Single size, UnityEditor.DrawCapFunction drawFunc, Single snap) (at C:/BuildAgent/work/14194e8ce88cdf47/Editor/MonoGenerated/Editor/EditorHandles.cs:93)
 UnityEditor.Handles.DoPositionHandle_Internal (Vector3 position, Quaternion rotation) (at C:/BuildAgent/work/14194e8ce88cdf47/Editor/Mono/EditorHandles/PositionHandle.cs:71)
 UnityEditor.Handles.DoPositionHandle (Vector3 position, Quaternion rotation) (at C:/BuildAgent/work/14194e8ce88cdf47/Editor/Mono/EditorHandles/PositionHandle.cs:61)
 UnityEditor.Handles.PositionHandle (Vector3 position, Quaternion rotation) (at C:/BuildAgent/work/14194e8ce88cdf47/Editor/MonoGenerated/Editor/EditorHandles.cs:67)
 UnityEditor.MoveTool.OnGUI () (at C:/BuildAgent/work/14194e8ce88cdf47/Editor/Mono/GUI/BuiltinTools.cs:14)
 UnityEditor.SceneView.DefaultHandles () (at C:/BuildAgent/work/14194e8ce88cdf47/Editor/Mono/SceneView/SceneView.cs:970)
 UnityEditor.SceneView.OnGUI () (at C:/BuildAgent/work/14194e8ce88cdf47/Editor/Mono/SceneView/SceneView.cs:722)
 System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture)

I have tried reverting all my files to an earlier build and it's still happening. Anyone seen this error before? Got any idea what might be going wrong?

Thanks much, -Memige

EDIT Here's a screen shot of what its doing visually in the editor alt text

editordrawerror.jpg (33.5 kB)
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

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Memige · Oct 18, 2012 at 09:50 PM

I am still curious as to where this came from, but restarting the editor seems to have fixed it. I'll save my "Correct answer" for whoever can figure out what was happening, but for anyone that runs into this themselves, try rebooting. [Something I should have tried before posting admittedly]

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

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

9 People are following this question.

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

Related Questions

Odd/Even tag Errors 0 Answers

OnInspectorGUI() Getting Control 2's position in a group with only 2 controls when doing repaint 1 Answer

Unity Package Manager UI Error Socket IO Unity after updating from 2017.3 to 2018.1.0f2 Nodejs 1 Answer

Execute editor window scripts when project errors are present 0 Answers

Socket error editor 1 Answer


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