Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

Bug Localization errors and GUIUtility

Discussion in '2021.2 Beta' started by Ellukitas_123, Apr 6, 2021.

  1. Ellukitas_123

    Ellukitas_123

    Joined:
    Jan 20, 2021
    Posts:
    21
    Hi,

    When i use Localization with 2021.2.0a11 Unity version in the localization (0.10.0) string tables editor there's nothing to edit and the tables are empty.

    I have these errors:

    NullReferenceException: Object reference not set to an instance of an object
    UnityEditor.Localization.UI.SmartFormatField.SubscribeToHyperlinkEvent () (at Library/PackageCache/com.unity.localization@0.10.0-preview/Editor/UI/Smart Format/SmartFormatField.cs:292)
    UnityEditor.Localization.UI.SmartFormatField..ctor () (at Library/PackageCache/com.unity.localization@0.10.0-preview/Editor/UI/Smart Format/SmartFormatField.cs:240)
    UnityEditor.Localization.UI.StringTableTreeViewItem.Initialize (UnityEditor.Localization.LocalizationTableCollection collection, System.Int32 startIdx, System.Collections.Generic.List`1[T] sortedTables) (at Library/PackageCache/com.unity.localization@0.10.0-preview/Editor/UI/Tables/StringTableTreeViewItem.cs:26)
    UnityEditor.Localization.UI.GenericAssetTableListView`2[T1,T2].CreateTreeViewItem (System.Int32 index, UnityEngine.Localization.Tables.SharedTableData+SharedTableEntry entry) (at Library/PackageCache/com.unity.localization@0.10.0-preview/Editor/UI/Tables/GenericAssetTableListView.cs:225)
    UnityEditor.Localization.UI.GenericAssetTableListView`2[T1,T2].BuildRoot () (at Library/PackageCache/com.unity.localization@0.10.0-preview/Editor/UI/Tables/GenericAssetTableListView.cs:255)
    UnityEditor.IMGUI.Controls.TreeView+TreeViewControlDataSource.FetchData () (at <0e29c6fa484546b69131e62ea7005ea3>:0)
    UnityEditor.IMGUI.Controls.TreeViewDataSource.ReloadData () (at <0e29c6fa484546b69131e62ea7005ea3>:0)
    UnityEditor.IMGUI.Controls.TreeView+TreeViewControlDataSource.ReloadData () (at <0e29c6fa484546b69131e62ea7005ea3>:0)
    UnityEditor.IMGUI.Controls.TreeViewController.ReloadData () (at <0e29c6fa484546b69131e62ea7005ea3>:0)
    UnityEditor.IMGUI.Controls.TreeView.Reload () (at <0e29c6fa484546b69131e62ea7005ea3>:0)
    UnityEditor.Localization.UI.GenericAssetTableListView`2[T1,T2].DrawNewKeyField (UnityEngine.Rect cellRect) (at Library/PackageCache/com.unity.localization@0.10.0-preview/Editor/UI/Tables/GenericAssetTableListView.cs:389)
    UnityEditor.Localization.UI.GenericAssetTableListView`2[T1,T2].RowGUI (UnityEditor.IMGUI.Controls.TreeView+RowGUIArgs args) (at Library/PackageCache/com.unity.localization@0.10.0-preview/Editor/UI/Tables/GenericAssetTableListView.cs:296)
    UnityEditor.IMGUI.Controls.TreeView+TreeViewControlGUI.OnContentGUI (UnityEngine.Rect rect, System.Int32 row, UnityEditor.IMGUI.Controls.TreeViewItem item, System.String label, System.Boolean selected, System.Boolean focused, System.Boolean useBoldFont, System.Boolean isPinging) (at <0e29c6fa484546b69131e62ea7005ea3>:0)
    UnityEditor.IMGUI.Controls.TreeViewGUI.DoItemGUI (UnityEngine.Rect rect, System.Int32 row, UnityEditor.IMGUI.Controls.TreeViewItem item, System.Boolean selected, System.Boolean focused, System.Boolean useBoldFont) (at <0e29c6fa484546b69131e62ea7005ea3>:0)
    UnityEditor.IMGUI.Controls.TreeViewGUI.OnRowGUI (UnityEngine.Rect rowRect, UnityEditor.IMGUI.Controls.TreeViewItem item, System.Int32 row, System.Boolean selected, System.Boolean focused) (at <0e29c6fa484546b69131e62ea7005ea3>:0)
    UnityEditor.IMGUI.Controls.TreeViewController.DoItemGUI (UnityEditor.IMGUI.Controls.TreeViewItem item, System.Int32 row, System.Single rowWidth, System.Boolean hasFocus) (at <0e29c6fa484546b69131e62ea7005ea3>:0)
    UnityEditor.IMGUI.Controls.TreeViewController.IterateVisibleItems (System.Int32 firstRow, System.Int32 numVisibleRows, System.Single rowWidth, System.Boolean hasFocus) (at <0e29c6fa484546b69131e62ea7005ea3>:0)
    UnityEditor.IMGUI.Controls.TreeViewController.OnGUI (UnityEngine.Rect rect, System.Int32 keyboardControlID) (at <0e29c6fa484546b69131e62ea7005ea3>:0)
    UnityEditor.IMGUI.Controls.TreeView.TreeViewWithMultiColumnHeader (UnityEngine.Rect rect) (at <0e29c6fa484546b69131e62ea7005ea3>:0)
    UnityEditor.IMGUI.Controls.TreeView.OnGUI (UnityEngine.Rect rect) (at <0e29c6fa484546b69131e62ea7005ea3>:0)
    UnityEditor.Localization.UI.GenericAssetTableListView`2[T1,T2].OnGUI (UnityEngine.Rect rect) (at Library/PackageCache/com.unity.localization@0.10.0-preview/Editor/UI/Tables/GenericAssetTableListView.cs:282)
    UnityEditor.Localization.UI.StringTableEditor.OnIMGUI () (at Library/PackageCache/com.unity.localization@0.10.0-preview/Editor/UI/Tables/StringTableEditor.cs:38)
    UnityEngine.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt, UnityEngine.Matrix4x4 parentTransform, UnityEngine.Rect clippingRect, System.Boolean isComputingLayout, UnityEngine.Rect layoutSize, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <6dfd6839df864364887d0e772c0e2850>:0)
    UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, UnityEngine.Matrix4x4 worldTransform, UnityEngine.Rect clippingRect, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <6dfd6839df864364887d0e772c0e2850>:0)
    UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <6dfd6839df864364887d0e772c0e2850>:0)
    UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, System.Boolean canAffectFocus) (at <6dfd6839df864364887d0e772c0e2850>:0)
    UnityEngine.UIElements.IMGUIContainer.SendEventToIMGUIRaw (UnityEngine.UIElements.EventBase evt, System.Boolean canAffectFocus, System.Boolean verifyBounds) (at <6dfd6839df864364887d0e772c0e2850>:0)
    UnityEngine.UIElements.IMGUIContainer.SendEventToIMGUI (UnityEngine.UIElements.EventBase evt, System.Boolean canAffectFocus, System.Boolean verifyBounds) (at <6dfd6839df864364887d0e772c0e2850>:0)
    UnityEngine.UIElements.IMGUIContainer.HandleEvent (UnityEngine.UIElements.EventBase evt) (at <6dfd6839df864364887d0e772c0e2850>:0)
    UnityEngine.UIElements.CallbackEventHandler.HandleEventAtTargetPhase (UnityEngine.UIElements.EventBase evt) (at <6dfd6839df864364887d0e772c0e2850>:0)
    UnityEngine.UIElements.MouseCaptureDispatchingStrategy.DispatchEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <6dfd6839df864364887d0e772c0e2850>:0)
    UnityEngine.UIElements.EventDispatcher.ApplyDispatchingStrategies (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel, System.Boolean imguiEventIsInitiallyUsed) (at <6dfd6839df864364887d0e772c0e2850>:0)
    UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <6dfd6839df864364887d0e772c0e2850>:0)
    UnityEngine.UIElements.EventDispatcher.ProcessEventQueue () (at <6dfd6839df864364887d0e772c0e2850>:0)
    UnityEngine.UIElements.EventDispatcher.OpenGate () (at <6dfd6839df864364887d0e772c0e2850>:0)
    UnityEngine.UIElements.EventDispatcherGate.Dispose () (at <6dfd6839df864364887d0e772c0e2850>:0)
    UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <6dfd6839df864364887d0e772c0e2850>:0)
    UnityEngine.UIElements.EventDispatcher.Dispatch (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel, UnityEngine.UIElements.DispatchMode dispatchMode) (at <6dfd6839df864364887d0e772c0e2850>:0)
    UnityEngine.UIElements.BaseVisualElementPanel.SendEvent (UnityEngine.UIElements.EventBase e, UnityEngine.UIElements.DispatchMode dispatchMode) (at <6dfd6839df864364887d0e772c0e2850>:0)
    UnityEngine.UIElements.UIElementsUtility.DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at <6dfd6839df864364887d0e772c0e2850>:0)
    UnityEngine.UIElements.UIElementsUtility.UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& eventHandled) (at <6dfd6839df864364887d0e772c0e2850>:0)
    UnityEngine.UIElements.UIEventRegistration.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at <6dfd6839df864364887d0e772c0e2850>:0)
    UnityEngine.UIElements.UIEventRegistration+<>c.<.cctor>b__1_2 (System.Int32 i, System.IntPtr ptr) (at <6dfd6839df864364887d0e772c0e2850>:0)
    UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& result) (at <ea2064d6d70e4d1381b89c77261e9037>:0)
    TreeView has not been properly intialized yet. Ensure to call Reload() before using the tree view.
    UnityEngine.GUIUtility:processEvent (int,intptr,bool&)​
     
  2. LeonhardP

    LeonhardP

    Unity Technologies

    Joined:
    Jul 4, 2016
    Posts:
    3,136
    karl_jones likes this.