[Resolved] Editor Utilities Custom Inspector Builder error
- This topic is empty.
-
AuthorPosts
-
30 November 2017 at 21:23 #1296Chloroplast GamesKeymaster
I’m getting this error when using the demo scene. Clicked on the “List” enum. Clicked on Add or Update (probably other buttons too). Behavior gets a bit strange after this error appears.
NullReferenceException: Object reference not set to an instance of an object
Assets.CGF.Editor.CGFEditorUtilitiesClass+<BuildListCustom>c__AnonStorey5.<>m__1 (Rect rect, Int32 index, Boolean isActive, Boolean isFocused) (at Assets/CGF/Editor/CGFEditorUtilitiesClass.cs:13338)
UnityEditorInternal.ReorderableList.DoListElements (Rect listRect) (at C:/buildslave/unity/build/Editor/Mono/GUI/ReorderableList.cs:582)
UnityEditorInternal.ReorderableList.DoLayoutList () (at C:/buildslave/unity/build/Editor/Mono/GUI/ReorderableList.cs:389)
Assets.CGF.Editor.CGFEditorUtilitiesClass.BuildListCustom (UnityEditor.SerializedProperty property, UnityEditorInternal.ReorderableList list, System.String listName, Boolean vertical, UnityEditor.SerializedProperty enumLocker, System.Int32[] enumValues, System.Int32[] propertySpace, System.String[] properties) (at Assets/CGF/Editor/CGFEditorUtilitiesClass.cs:13399)
Assets.CGF.Samples.Editor.EditorUtilitiesSampleScriptEditor.OnInspectorGUI () (at Assets/CGF/Samples/Editor/EditorUtilitiesSampleScriptEditor.cs:280)
UnityEditor.InspectorWindow.DrawEditor (UnityEditor.Editor[] editors, Int32 editorIndex, Boolean rebuildOptimizedGUIBlock, System.Boolean& showImportedObjectBarNext, UnityEngine.Rect& importedObjectBarRect) (at C:/buildslave/unity/build/Editor/Mono/Inspector/InspectorWindow.cs:1240)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr) -
AuthorPosts
- You must be logged in to reply to this topic.