Unity 2019.3b10. Localization is unusable.

I’m using 2019.3b10.
I followed tutorial for 0.5 version.
I can’t edit tables.

That’s how window looks.

This is the error in the console:
(Seems like argument ‘index’ is equal to tables count)

ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
System.ThrowHelper.ThrowArgumentOutOfRangeException (System.ExceptionArgument argument, System.ExceptionResource resource) (at <437ba245d8404784b9fbab9b439ac908>:0)
System.ThrowHelper.ThrowArgumentOutOfRangeException () (at <437ba245d8404784b9fbab9b439ac908>:0)
System.Collections.Generic.List`1[T].get_Item (System.Int32 index) (at <437ba245d8404784b9fbab9b439ac908>:0)
UnityEditor.Localization.UI.AssetTableTreeViewItem.Initialize (System.Collections.Generic.List`1[T] tables, System.Int32 startIdx) (at Library/PackageCache/com.unity.localization@0.5.0-preview/Editor/UI/Tables/AssetTableTreeViewItem.cs:43)
UnityEditor.Localization.UI.GenericAssetTableListView`2[T1,T2].CreateTreeViewItem (System.Int32 index, UnityEngine.Localization.Tables.KeyDatabase+KeyDatabaseEntry keyEntry) (at Library/PackageCache/com.unity.localization@0.5.0-preview/Editor/UI/Tables/GenericAssetTableListView.cs:171)
UnityEditor.Localization.UI.GenericAssetTableListView`2[T1,T2].BuildRoot () (at Library/PackageCache/com.unity.localization@0.5.0-preview/Editor/UI/Tables/GenericAssetTableListView.cs:201)
UnityEditor.IMGUI.Controls.TreeView+TreeViewControlDataSource.FetchData () (at <b43e6d4802d64ea8bbdaa0bf64614d3b>:0)
UnityEditor.IMGUI.Controls.TreeViewDataSource.ReloadData () (at <b43e6d4802d64ea8bbdaa0bf64614d3b>:0)
UnityEditor.IMGUI.Controls.TreeView+TreeViewControlDataSource.ReloadData () (at <b43e6d4802d64ea8bbdaa0bf64614d3b>:0)
UnityEditor.IMGUI.Controls.TreeViewController.ReloadData () (at <b43e6d4802d64ea8bbdaa0bf64614d3b>:0)
UnityEditor.IMGUI.Controls.TreeView.Reload () (at <b43e6d4802d64ea8bbdaa0bf64614d3b>:0)
UnityEditor.Localization.UI.GenericAssetTableListView`2[T1,T2].Initialize () (at Library/PackageCache/com.unity.localization@0.5.0-preview/Editor/UI/Tables/GenericAssetTableListView.cs:123)
UnityEditor.Localization.UI.AssetTableEditor.OnIMGUI () (at Library/PackageCache/com.unity.localization@0.5.0-preview/Editor/UI/Tables/AssetTableEditor.cs:33)
UnityEngine.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt, UnityEngine.Matrix4x4 parentTransform, UnityEngine.Rect clippingRect, System.Boolean isComputingLayout, UnityEngine.Rect layoutSize, System.Boolean canAffectFocus) (at <b256487a5e4140809d026a943f161bc2>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

Hey thanks for the bug report. How many locales does your project have and how many tables did it create ?

Only 2 locales. Starting from 1 table (no matter string or asset) it throws this error.
Also, I tried to use 2 different table types. That also doesn’t work.

And when I had 2 tables I tried to change package code to debug value of parameter ‘index’. For 2 tables the index equals 2.

1 Like

Hey. 0.5.1-preview should address these issues.
Let us know if you are still having problems.