NullReferenceException: Object reference not set to an instance of an object #87
zhoujie1998
started this conversation in
General
Replies: 1 comment
-
I solved the problem by modifying the code of the SetIconForObject method in the IconManager class. What I did was replace the entire code of this method with EditorGUIUtility.SetIconForObject(obj, icon);. It appears that in some versions of EditorGUIUtility, SetIconForObject has become a public method and cannot be found using the specified flags (BindingFlags.Static | BindingFlags.Public | BindingFlags.NonPublic). |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
NullReferenceException: Object reference not set to an instance of an object
Packages.MapToolbox.IconManager.SetIconForObject (UnityEngine.GameObject obj, UnityEngine.Texture2D icon)
How can this be solved?
Beta Was this translation helpful? Give feedback.
All reactions