Search Issue Tracker
Fixed in 0.9.0-preview
Found in [Package]
NullReferenceException thrown when editing a LocalizedString linked to a collection that does not have a table for every project locale.
If a table collection is missing a table for one of the project locales then a NullReferenceException will be thrown by the LocalizedString property drawer.
1) Create a new string table collection for some but not all of the project locales
2) Add A UGUI Text GameObject and click the Localize option
3) Select the new table collection. Exceptions will be thrown in the editor
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.Localization.UI.LocalizedStringPropertyDrawer+StringPropertyData.Init (UnityEditor.SerializedProperty property) (at C:/Unity/Packages/com.unity.localization/Packages/com.unity.localization/Editor/UI/Localized Reference/LocalizedStringPropertyDrawer.cs:125)
UnityEditor.Localization.UI.LocalizedReferencePropertyDrawer`1[TCollection].GetDataForProperty (UnityEditor.SerializedProperty property) (at C:/Unity/Packages/com.unity.localization/Packages/com.unity.localization/Editor/UI/Localized Reference/LocalizedReferencePropertyDrawer.cs:251)
UnityEditor.Localization.UI.PropertyDrawerExtended`1[TData].GetPropertyHeight (UnityEditor.SerializedProperty property, UnityEngine.GUIContent label) (at C:/Unity/Packages/com.unity.localization/Packages/com.unity.localization/Editor/UI/Utility/PropertyDrawerExtended.cs:38)
UnityEditor.Localization.UI.LocalizeStringEditor.OnInspectorGUI () (at C:/Unity/Packages/com.unity.localization/Packages/com.unity.localization/Editor/UI/Components/LocalizeStringEditor.cs:42)
UnityEditor.UIElements.InspectorElement+<>c__DisplayClass58_0.<CreateIMGUIInspectorFromEditor>b__0 () (at <8004fcc221b54f98ba547350ea71d812>:0)
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
- TrailRenderer.SetPosition will log a Index out of bounds error when index is in bounds of the positionCount property
- [URP] Graphics.DrawMeshInstancedIndirect rendering correctly after clicking an another application/refreshing Assets
- Packages under V2 lifecycle are incorrectly labeled as 'Pre-Release' or 'Release'
- Runtime theme's text color and font-size cannot be overridden from user stylesheets using :root selector
- [iOS] [IL2CPP] try-catch when() filter fails