The debug view stops working

Nerdfor

New member
If more than one exported behavior is referenced as external behavior, the error occurs when debugging one behavior.


KeyNotFoundException: The given key '* - Behavior' was not present in the dictionary.
System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) (at <cb3602b5bf2148caa08db7780ec02b19>:0)
BehaviorDesigner.Runtime.BehaviorManager.GetTaskList (BehaviorDesigner.Runtime.Behavior behavior) (at <4a24131e73ec49f7805f3dfb6a69fa78>:0)
BehaviorDesigner.Editor.BehaviorDesignerWindow.UpdateNodeTaskMap () (at <d6203e70841f4bfeb69e5def378a2bc0>:0)
BehaviorDesigner.Editor.BehaviorDesignerWindow.LoadBehavior (BehaviorDesigner.Runtime.BehaviorSource behaviorSource, System.Boolean loadPrevBehavior, System.Boolean inspectorLoad) (at <d6203e70841f4bfeb69e5def378a2bc0>:0)
BehaviorDesigner.Editor.BehaviorDesignerWindow.LoadBehavior (BehaviorDesigner.Runtime.BehaviorSource behaviorSource, System.Boolean loadPrevBehavior) (at <d6203e70841f4bfeb69e5def378a2bc0>:0)
BehaviorDesigner.Editor.BehaviorDesignerWindow.BehaviorSelectionCallback (System.Object obj) (at <d6203e70841f4bfeb69e5def378a2bc0>:0)
UnityEditor.GenericMenu.CatchMenu (System.Object userData, System.String[] options, System.Int32 selected) (at <376f43f3329c444db4613258b017d5db>:0)
 
I just tried to reproduce this but wasn't able to. Can you you try it in a fresh project and see if you can reproduce the error?
 
11.png

Even in a new project, when two or more are created and referenced, the same thing happens as shown in the screenshot.
 
Same error here after upgrading project from 2021 to 2022.3.16f1. The error keeps reporting after I open tasks tab every time.
1707290503093.png
 
Top