Hello,
I’m experimenting with an issue when select the Localization Settings asset to view it on Inspector. When the mouse is over Inspector, it disappears and starts showing multiple console errors.
Inspector before the crash:
Console Output:
First crash:
SerializedProperty m_StartupSelectors.Array.data[2].m_LocaleId.m_Code has disappeared!
UnityEditor.Localization.UI.ReorderableListExtended: DrawElement(Rect, Int32, Boolean, Boolean)
UnityEditorInternal.ReorderableList: DoListElements(Rect) (at /Users/builduser/buildslave/unity/build/Editor/Mono/GUI/ReorderableList.cs:606)
UnityEditorInternal.ReorderableList: DoLayoutList() (at /Users/builduser/buildslave/unity/build/Editor/Mono/GUI/ReorderableList.cs:408)
UnityEngine.GUIUtility: ProcessEvent(Int32, IntPtr)
The following crashes:
InvalidOperationException: The operation is not possible when moved past all properties (Next returned false)
UnityEditor.SerializedProperty.Verify (UnityEditor.SerializedProperty+VerifyFlags verifyFlags) (at /Users/builduser/buildslave/unity/build/Editor/Mono/SerializedProperty.bindings.cs:327)
UnityEditor.SerializedProperty.get_propertyType () (at /Users/builduser/buildslave/unity/build/Editor/Mono/SerializedProperty.bindings.cs:761)
UnityEditor.SerializedProperty.get_hashCodeForPropertyPath () (at /Users/builduser/buildslave/unity/build/Editor/Mono/SerializedProperty.bindings.cs:536)
UnityEditor.PropertyHandlerCache.GetPropertyHash (UnityEditor.SerializedProperty property) (at /Users/builduser/buildslave/unity/build/Editor/Mono/Inspector/PropertyDrawerCache.cs:31)
UnityEditor.PropertyHandlerCache.GetHandler (UnityEditor.SerializedProperty property) (at /Users/builduser/buildslave/unity/build/Editor/Mono/Inspector/PropertyDrawerCache.cs:12)
UnityEditor.ScriptAttributeUtility.GetHandler (UnityEditor.SerializedProperty property) (at /Users/builduser/buildslave/unity/build/Editor/Mono/ScriptAttributeGUI/ScriptAttributeUtility.cs:408)
UnityEditor.EditorGUI.PropertyFieldInternal (UnityEngine.Rect position, UnityEditor.SerializedProperty property, UnityEngine.GUIContent label, System.Boolean includeChildren) (at /Users/builduser/buildslave/unity/build/Editor/Mono/EditorGUI.cs:6181)
UnityEditor.EditorGUI.PropertyField (UnityEngine.Rect position, UnityEditor.SerializedProperty property, System.Boolean includeChildren) (at /Users/builduser/buildslave/unity/build/Editor/Mono/EditorGUI.cs:7498)
UnityEditor.EditorGUI.PropertyField (UnityEngine.Rect position, UnityEditor.SerializedProperty property) (at /Users/builduser/buildslave/unity/build/Editor/Mono/EditorGUI.cs:7493)
UnityEditor.Localization.UI.LocaleIdentifierPropertyDrawer.OnGUI (UnityEngine.Rect position, UnityEditor.SerializedProperty property, UnityEngine.GUIContent label) (at Library/PackageCache/com.unity.localization@0.5.1-preview/Editor/UI/Settings/Locale/LocaleIdentifierPropertyDrawer.cs:96)
UnityEditor.PropertyDrawer.OnGUISafe (UnityEngine.Rect position, UnityEditor.SerializedProperty property, UnityEngine.GUIContent label) (at /Users/builduser/buildslave/unity/build/Editor/Mono/ScriptAttributeGUI/PropertyDrawer.cs:23)
UnityEditor.PropertyHandler.OnGUI (UnityEngine.Rect position, UnityEditor.SerializedProperty property, UnityEngine.GUIContent label, System.Boolean includeChildren, UnityEngine.Rect visibleArea) (at /Users/builduser/buildslave/unity/build/Editor/Mono/ScriptAttributeGUI/PropertyHandler.cs:139)
UnityEditor.PropertyHandler.OnGUI (UnityEngine.Rect position, UnityEditor.SerializedProperty property, UnityEngine.GUIContent label, System.Boolean includeChildren) (at /Users/builduser/buildslave/unity/build/Editor/Mono/ScriptAttributeGUI/PropertyHandler.cs:106)
UnityEditor.PropertyHandler.OnGUI (UnityEngine.Rect position, UnityEditor.SerializedProperty property, UnityEngine.GUIContent label, System.Boolean includeChildren, UnityEngine.Rect visibleArea) (at /Users/builduser/buildslave/unity/build/Editor/Mono/ScriptAttributeGUI/PropertyHandler.cs:180)
UnityEditor.PropertyHandler.OnGUI (UnityEngine.Rect position, UnityEditor.SerializedProperty property, UnityEngine.GUIContent label, System.Boolean includeChildren) (at /Users/builduser/buildslave/unity/build/Editor/Mono/ScriptAttributeGUI/PropertyHandler.cs:106)
UnityEditor.EditorGUI.PropertyFieldInternal (UnityEngine.Rect position, UnityEditor.SerializedProperty property, UnityEngine.GUIContent label, System.Boolean includeChildren) (at /Users/builduser/buildslave/unity/build/Editor/Mono/EditorGUI.cs:6181)
UnityEditor.EditorGUI.PropertyField (UnityEngine.Rect position, UnityEditor.SerializedProperty property, UnityEngine.GUIContent label, System.Boolean includeChildren) (at /Users/builduser/buildslave/unity/build/Editor/Mono/EditorGUI.cs:7509)
UnityEditor.Localization.UI.ReorderableListExtended.DrawElement (UnityEngine.Rect rect, System.Int32 idx, System.Boolean isActive, System.Boolean isFocused) (at Library/PackageCache/com.unity.localization@0.5.1-preview/Editor/UI/Utility/ReorderableListExtended.cs:63)
UnityEditorInternal.ReorderableList.DoListElements (UnityEngine.Rect listRect) (at /Users/builduser/buildslave/unity/build/Editor/Mono/GUI/ReorderableList.cs:606)
UnityEditorInternal.ReorderableList.DoLayoutList () (at /Users/builduser/buildslave/unity/build/Editor/Mono/GUI/ReorderableList.cs:408)
UnityEditor.Localization.UI.LocalizationSettingsEditor.OnInspectorGUI () (at Library/PackageCache/com.unity.localization@0.5.1-preview/Editor/UI/Settings/LocalizationSettingsEditor.cs:58)
UnityEditor.UIElements.InspectorElement+<>c__DisplayClass55_0.b__0 () (at /Users/builduser/buildslave/unity/build/Editor/Mono/Inspector/InspectorElement.cs:521)
I don’t know if I’m doing something wrong or whatever what could be.
Best regards,
Hi,
I believe this is fixed. I will check tomorrow when I’m back at my desk
1 Like
Nice! I suppose that the fix will be released in the next version.
Best regards,
Yes. We are just waiting for the new docs to be approved and then it will be ready.
1 Like
I’m getting a similar issue now in Unity 2019.3, and its when I try to change the Size of an array from 0 to 1, I get the same error message, stating that the array element[0] has disappeared. If the Array already has elements in it, I can add/subtract easilly, but it only happens on new arrays with a size of 0.
Do you know what may be causing this?
Is this from Localization settings or something else?
I believe it may be a bug with SerialiseReference
Try updating to 2019.4.
Sorry for the late reply. Its not related to Localization settings, but i did discover that it only affected the PropertyDrawers of items with Custom Inspectors, event thought the target objects were all serializable.
Once I created a custom inspector for the affected items, I could then make changes to the arrays, without issue.
1 Like