根据运行指南,前面都没问题,最后运行时弹出这个,关键是点击这个异常不会弹到出问题的点去,求大佬指教!
KeyNotFoundException: The given key ‘Chinese’ was not present in the dictionary.
System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) (at <75633565436c42f0a6426b33f0132ade>:0)
UnityEngine.UIElements.PanelTextSettings.UpdateLocalizationFontAsset () (at <ea24684563df4eb4955180a8228a7416>:0)
UnityEngine.UIElements.PanelTextSettings.get_defaultPanelTextSettings () (at <ea24684563df4eb4955180a8228a7416>:0)
UnityEngine.UIElements.TextUtilities.GetTextSettingsFrom (UnityEngine.UIElements.MeshGenerationContextUtils+TextParams textParam) (at <ea24684563df4eb4955180a8228a7416>:0)
UnityEngine.UIElements.TextCoreHandle.UpdateGenerationSettingsCommon (UnityEngine.UIElements.MeshGenerationContextUtils+TextParams painterParams, UnityEngine.TextCore.Text.TextGenerationSettings settings) (at <ea24684563df4eb4955180a8228a7416>:0)
UnityEngine.UIElements.TextCoreHandle.UpdatePreferredValues (UnityEngine.UIElements.MeshGenerationContextUtils+TextParams parms) (at <ea24684563df4eb4955180a8228a7416>:0)
UnityEngine.UIElements.TextCoreHandle.ComputeTextWidth (UnityEngine.UIElements.MeshGenerationContextUtils+TextParams parms, System.Single scaling) (at <ea24684563df4eb4955180a8228a7416>:0)
UnityEngine.UIElements.TextUtilities.MeasureVisualElementTextSize (UnityEngine.UIElements.VisualElement ve, System.String textToMeasure, System.Single width, UnityEngine.UIElements.VisualElement+MeasureMode widthMode, System.Single height, UnityEngine.UIElements.VisualElement+MeasureMode heightMode, UnityEngine.UIElements.ITextHandle textHandle) (at <ea24684563df4eb4955180a8228a7416>:0)
UnityEngine.UIElements.TextElement.MeasureTextSize (System.String textToMeasure, System.Single width, UnityEngine.UIElements.VisualElement+MeasureMode widthMode, System.Single height, UnityEngine.UIElements.VisualElement+MeasureMode heightMode) (at <ea24684563df4eb4955180a8228a7416>:0)
UnityEngine.UIElements.TextElement.DoMeasure (System.Single desiredWidth, UnityEngine.UIElements.VisualElement+MeasureMode widthMode, System.Single desiredHeight, UnityEngine.UIElements.VisualElement+MeasureMode heightMode) (at <ea24684563df4eb4955180a8228a7416>:0)
UnityEngine.UIElements.VisualElement.Measure (UnityEngine.Yoga.YogaNode node, System.Single width, UnityEngine.Yoga.YogaMeasureMode widthMode, System.Single height, UnityEngine.Yoga.YogaMeasureMode heightMode) (at <ea24684563df4eb4955180a8228a7416>:0)
UnityEngine.UIElements.VisualElement.<AssignMeasureFunction>b__252_0 (UnityEngine.Yoga.YogaNode node, System.Single f, UnityEngine.Yoga.YogaMeasureMode mode, System.Single f1, UnityEngine.Yoga.YogaMeasureMode heightMode) (at <ea24684563df4eb4955180a8228a7416>:0)
UnityEngine.Yoga.YogaNode.MeasureInternal (UnityEngine.Yoga.YogaNode node, System.Single width, UnityEngine.Yoga.YogaMeasureMode widthMode, System.Single height, UnityEngine.Yoga.YogaMeasureMode heightMode) (at <10bdb68e0e2b45f9ad1fd6ed214aa0ce>:0)
UnityEngine.Yoga.Native.YGNodeMeasureInvoke (UnityEngine.Yoga.YogaNode node, System.Single width, UnityEngine.Yoga.YogaMeasureMode widthMode, System.Single height, UnityEngine.Yoga.YogaMeasureMode heightMode, System.IntPtr returnValueAddress) (at <10bdb68e0e2b45f9ad1fd6ed214aa0ce>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)