tomashalac / save-is-easy-help

save is easy technical support
1 stars 0 forks source link

Custom Inspector Has Problems When Doing Repaint #3

Open bluemanD opened 2 years ago

bluemanD commented 2 years ago

After attaching the SaveIsEasyComponent component to a game object, it runs into problems with some scripts and throws these two errors.

-ArgumentException: Getting control 1's position in a group with only 1 controls when doing repaint Aborting -NullReferenceException: Object reference not set to an instance of an object

FULL ERROR MESSAGES

ArgumentException: Getting control 1's position in a group with only 1 controls when doing repaint Aborting UnityEngine.GUILayoutGroup.GetNext () (at :0) UnityEngine.GUILayoutUtility.DoGetRect (System.Single minWidth, System.Single maxWidth, System.Single minHeight, System.Single maxHeight, UnityEngine.GUIStyle style, UnityEngine.GUILayoutOption[] options) (at :0) UnityEngine.GUILayoutUtility.GetRect (System.Single width, System.Single height, UnityEngine.GUILayoutOption[] options) (at :0) UnityEditor.EditorGUILayout.Space (System.Single width, System.Boolean expand) (at <780782bc035845f9909cebbd4c983ae3>:0) UnityEditor.EditorGUILayout.Space () (at <780782bc035845f9909cebbd4c983ae3>:0) FoldoutZone1[T].MainRun () (at <29736b66d3ee4911922bdef6c894807a>:0) FieldsManagerEditorPart.MainRun () (at <29736b66d3ee4911922bdef6c894807a>:0) EditorPartsManager1+<>c[T].b2_0 (EditorPart1[T] a) (at <29736b66d3ee4911922bdef6c894807a>:0) System.Collections.Generic.List1[T].ForEach (System.Action1[T] action) (at <6073cf49ed704e958b8a66d540dea948>:0) EditorPartsManager1[T].OnInspectorGUI () (at <29736b66d3ee4911922bdef6c894807a>:0) UnityEditor.UIElements.InspectorElement+<>c__DisplayClass59_0.b0 () (at <3d6ac16e3c754a199373804b462a1b72>:0) UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)

NullReferenceException: Object reference not set to an instance of an object FieldsManagerEditorPart.IsTypeBaseSerializable (System.Type type) (at <29736b66d3ee4911922bdef6c894807a>:0) FieldsManagerEditorPart.CanSaveArray (System.Type type) (at <29736b66d3ee4911922bdef6c894807a>:0) FieldsManagerEditorPart.RenderObject (System.Type ObjType, FoldoutItem1[T] parent, UnityEngine.Component component, System.Int32 val, System.Boolean IsTopLevel) (at <29736b66d3ee4911922bdef6c894807a>:0) FieldsManagerEditorPart.RenderObject (System.Type ObjType, FoldoutItem1[T] parent, UnityEngine.Component component, System.Int32 val, System.Boolean IsTopLevel) (at <29736b66d3ee4911922bdef6c894807a>:0) FieldsManagerEditorPart.RenderObject (System.Type ObjType, FoldoutItem1[T] parent, UnityEngine.Component component, System.Int32 val, System.Boolean IsTopLevel) (at <29736b66d3ee4911922bdef6c894807a>:0) FieldsManagerEditorPart.RenderObject (System.Type ObjType, FoldoutItem1[T] parent, UnityEngine.Component component, System.Int32 val, System.Boolean IsTopLevel) (at <29736b66d3ee4911922bdef6c894807a>:0) FieldsManagerEditorPart.RenderObject (System.Type ObjType, FoldoutItem1[T] parent, UnityEngine.Component component, System.Int32 val, System.Boolean IsTopLevel) (at <29736b66d3ee4911922bdef6c894807a>:0) FieldsManagerEditorPart.OnLoad () (at <29736b66d3ee4911922bdef6c894807a>:0) FoldoutZoneCore.CallRefresh () (at <29736b66d3ee4911922bdef6c894807a>:0) FoldoutZone1[T].OnLayout () (at <29736b66d3ee4911922bdef6c894807a>:0) FoldoutZone1[T].MainRun () (at <29736b66d3ee4911922bdef6c894807a>:0) FieldsManagerEditorPart.MainRun () (at <29736b66d3ee4911922bdef6c894807a>:0) EditorPartsManager1+<>c[T].b2_0 (EditorPart1[T] a) (at <29736b66d3ee4911922bdef6c894807a>:0) System.Collections.Generic.List1[T].ForEach (System.Action1[T] action) (at <6073cf49ed704e958b8a66d540dea948>:0) EditorPartsManager1[T].OnInspectorGUI () (at <29736b66d3ee4911922bdef6c894807a>:0) UnityEditor.UIElements.InspectorElement+<>c__DisplayClass59_0.b0 () (at <3d6ac16e3c754a199373804b462a1b72>:0) UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)

tomashalac commented 2 years ago

Hello, I'm sorry I didn't answer before, but I was investigating the error and I think I'll fix it, in the next update it will be fixed, thanks.

bluemanD commented 2 years ago

Thank you!

On Mon, Jun 6, 2022, 10:31 AM Tomas Halac @.***> wrote:

Hello, I'm sorry I didn't answer before, but I was investigating the error and I think I'll fix it, in the next update it will be fixed, thanks.

El lun, 30 de may. de 2022 11:05, bluemanD @.***> escribió:

After attaching the SaveIsEasyComponent component to a game object, it runs into problems with some scripts and throws these two errors.

-ArgumentException: Getting control 1's position in a group with only 1 controls when doing repaint Aborting -NullReferenceException: Object reference not set to an instance of an object FULL ERROR MESSAGES ArgumentException: Getting control 1's position in a group with only 1 controls when doing repaint Aborting UnityEngine.GUILayoutGroup.GetNext () (at :0) UnityEngine.GUILayoutUtility.DoGetRect (System.Single minWidth, System.Single maxWidth, System.Single minHeight, System.Single maxHeight, UnityEngine.GUIStyle style, UnityEngine.GUILayoutOption[] options) (at :0) UnityEngine.GUILayoutUtility.GetRect (System.Single width, System.Single height, UnityEngine.GUILayoutOption[] options) (at :0) UnityEditor.EditorGUILayout.Space (System.Single width, System.Boolean expand) (at <780782bc035845f9909cebbd4c983ae3>:0) UnityEditor.EditorGUILayout.Space () (at

<780782bc035845f9909cebbd4c983ae3>:0) FoldoutZone1[T].MainRun () (at <29736b66d3ee4911922bdef6c894807a>:0) FieldsManagerEditorPart.MainRun () (at <29736b66d3ee4911922bdef6c894807a>:0) EditorPartsManager1+<>c[T].b__2_0 (EditorPart1[T] a) (at <29736b66d3ee4911922bdef6c894807a>:0) System.Collections.Generic.List1[T].ForEach (System.Action1[T] action) (at <6073cf49ed704e958b8a66d540dea948>:0) EditorPartsManager1[T].OnInspectorGUI () (at <29736b66d3ee4911922bdef6c894807a>:0) UnityEditor.UIElements.InspectorElement+<>c__DisplayClass59_0.b__0 () (at <3d6ac16e3c754a199373804b462a1b72>:0) UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&) NullReferenceException: Object reference not set to an instance of an object FieldsManagerEditorPart.IsTypeBaseSerializable (System.Type type) (at <29736b66d3ee4911922bdef6c894807a>:0) FieldsManagerEditorPart.CanSaveArray (System.Type type) (at <29736b66d3ee4911922bdef6c894807a>:0) FieldsManagerEditorPart.RenderObject (System.Type ObjType, FoldoutItem1[T] parent, UnityEngine.Component component, System.Int32 val, System.Boolean IsTopLevel) (at <29736b66d3ee4911922bdef6c894807a>:0) FieldsManagerEditorPart.RenderObject (System.Type ObjType, FoldoutItem1[T] parent, UnityEngine.Component component, System.Int32 val, System.Boolean IsTopLevel) (at <29736b66d3ee4911922bdef6c894807a>:0) FieldsManagerEditorPart.RenderObject (System.Type ObjType, FoldoutItem1[T] parent, UnityEngine.Component component, System.Int32 val, System.Boolean IsTopLevel) (at <29736b66d3ee4911922bdef6c894807a>:0) FieldsManagerEditorPart.RenderObject (System.Type ObjType, FoldoutItem1[T] parent, UnityEngine.Component component, System.Int32 val, System.Boolean IsTopLevel) (at <29736b66d3ee4911922bdef6c894807a>:0) FieldsManagerEditorPart.RenderObject (System.Type ObjType, FoldoutItem1[T] parent, UnityEngine.Component component, System.Int32 val, System.Boolean IsTopLevel) (at <29736b66d3ee4911922bdef6c894807a>:0) FieldsManagerEditorPart.OnLoad () (at <29736b66d3ee4911922bdef6c894807a>:0) FoldoutZoneCore.CallRefresh () (at <29736b66d3ee4911922bdef6c894807a>:0) FoldoutZone1[T].OnLayout () (at <29736b66d3ee4911922bdef6c894807a>:0) FoldoutZone1[T].MainRun () (at <29736b66d3ee4911922bdef6c894807a>:0) FieldsManagerEditorPart.MainRun () (at <29736b66d3ee4911922bdef6c894807a>:0) EditorPartsManager1+<>c[T].b__2_0 (EditorPart1[T] a) (at <29736b66d3ee4911922bdef6c894807a>:0) System.Collections.Generic.List1[T].ForEach (System.Action1[T] action) (at <6073cf49ed704e958b8a66d540dea948>:0) EditorPartsManager1[T].OnInspectorGUI () (at <29736b66d3ee4911922bdef6c894807a>:0) UnityEditor.UIElements.InspectorElement+<>c__DisplayClass59_0.b__0 () (at <3d6ac16e3c754a199373804b462a1b72>:0) UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&) — Reply to this email directly, view it on GitHub , or unsubscribe < https://github.com/notifications/unsubscribe-auth/AFCUDF6FCHVDIWGGQ7OTJJLVMTDJJANCNFSM5XKWHPVQ . You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>

— Reply to this email directly, view it on GitHub https://github.com/tomashalac/save-is-easy-help/issues/3#issuecomment-1147515674, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXDWUOSYL64CR7XWXZA3OHTVNYDVPANCNFSM5XKWHPVQ . You are receiving this because you authored the thread.Message ID: @.***>