- Home /
Scroll View Null Reference error
//error given
NullReferenceException: (null) UnityEditor.SerializedObject..ctor (UnityEngine.Object[] objs, UnityEngine.Object context) (at C:/buildslave/unity/build/artifacts/generated/common/editor/SerializedPropertyBindings.gen.cs:87) UnityEditor.Editor.GetSerializedObjectInternal () (at C:/buildslave/unity/build/artifacts/generated/common/editor/EditorBindings.gen.cs:193) UnityEditor.Editor.get_serializedObject () (at C:/buildslave/unity/build/artifacts/generated/common/editor/EditorBindings.gen.cs:185) UnityEditor.MaterialEditor.OnEnable () (at C:/buildslave/unity/build/Editor/Mono/Inspector/MaterialEditor.cs:1776)
//error given end
this error does not effect the result after play, but may effect the published version.
what I want here is either a clarification it wont effect my published version or how to fix this error.
i find a way to fix it but its not a permanent fix
//removing the last object added, basically what I do here is finish what i want inside the content and add another object just to remove it.
side note: after reloading unity the error goes back.
I'm using "Unity 5.6.6f2 personal (64bit)"
please someone help me....