willim099 发表于 2019-1-23 01:49

keynotfoundexception:the given key was not present in the dictionary求大佬解决方法

KeyNotFoundException: The given key was not present in the dictionary.
at System.Collections.Generic.Dictionary`2<int, string>.get_Item (int) <IL 0x000a8, 0x001a5>
at WindowManage.GongFaMassage (int,int,int,int) <IL 0x01451, 0x058d3>
at WindowManage.ShowGongFaMassage (int,int,int,int,UnityEngine.UI.Toggle) <IL 0x00592, 0x01364>
at (wrapper dynamic-method) WindowManage.WindowSwitch_Patch4 (object,bool,UnityEngine.GameObject) <IL 0x055d0, 0x163b4>
at PointerEnter.OnPointerEnter (UnityEngine.EventSystems.PointerEventData) in I:\Scroll Of TaiWu\Scroll Of TaiWu 1.0\Assets\Scripts\WorldMapPlace.cs:188
at UnityEngine.EventSystems.ExecuteEvents.Execute (UnityEngine.EventSystems.IPointerEnterHandler,UnityEngine.EventSystems.BaseEventData) in C:\buildslave\unity\build\Extensions\guisystem\UnityEngine.UI\EventSystem\ExecuteEvents.cs:22
at UnityEngine.EventSystems.ExecuteEvents.Execute<UnityEngine.EventSystems.IPointerEnterHandler> (UnityEngine.GameObject,UnityEngine.EventSystems.BaseEventData,UnityEngine.EventSystems.ExecuteEvents/EventFunction`1<UnityEngine.EventSystems.IPointerEnterHandler>) <0x0034d>

UnityEngine.DebugLogHandler:Internal_LogException(Exception, Object)
UnityEngine.DebugLogHandler:LogException(Exception, Object)
UnityEngine.Logger:LogException(Exception, Object)
UnityEngine.Debug:LogException(Exception)
UnityEngine.EventSystems.ExecuteEvents:Execute(GameObject, BaseEventData, EventFunction`1) (at C:\buildslave\unity\build\Extensions\guisystem\UnityEngine.UI\EventSystem\ExecuteEvents.cs:265)
UnityEngine.EventSystems.BaseInputModule:HandlePointerExitAndEnter(PointerEventData, GameObject) (at C:\buildslave\unity\build\Extensions\guisystem\UnityEngine.UI\EventSystem\InputModules\BaseInputModule.cs:246)
UnityEngine.EventSystems.PointerInputModule:ProcessMove(PointerEventData) (at C:\buildslave\unity\build\Extensions\guisystem\UnityEngine.UI\EventSystem\InputModules\PointerInputModule.cs:324)
UnityEngine.EventSystems.StandaloneInputModule:ProcessMouseEvent(Int32) (at C:\buildslave\unity\build\Extensions\guisystem\UnityEngine.UI\EventSystem\InputModules\StandaloneInputModule.cs:511)
UnityEngine.EventSystems.StandaloneInputModule:ProcessMouseEvent() (at C:\buildslave\unity\build\Extensions\guisystem\UnityEngine.UI\EventSystem\InputModules\StandaloneInputModule.cs:490)
UnityEngine.EventSystems.StandaloneInputModule:Process() (at C:\buildslave\unity\build\Extensions\guisystem\UnityEngine.UI\EventSystem\InputModules\StandaloneInputModule.cs:254)
UnityEngine.EventSystems.EventSystem:Update() (at C:\buildslave\unity\build\Extensions\guisystem\UnityEngine.UI\EventSystem\EventSystem.cs:377)

(Filename: I:/Scroll Of TaiWu/Scroll Of TaiWu 1.0/Assets/Scripts/WorldMapPlace.cs Line: 188)

willim099 发表于 2019-1-23 01:49

有没大佬能解答一下:Q

15386598380 发表于 2019-2-18 15:29

我也是这个错误KeyNotFoundException: The given key was not present in the dictionary. 我的原因是因为这个增量GangGroupValue_Date.txt.999 不知道你是不是这个问题
页: [1]
查看完整版本: keynotfoundexception:the given key was not present in the dictionary求大佬解决方法