BonsaiBehaviourTree icon indicating copy to clipboard operation
BonsaiBehaviourTree copied to clipboard

ArgumentNullException: BonsaiBehaviourTree/Editor/BonsaiCanvas

Open kimsanbaev-karim opened this issue 2 years ago • 1 comments

WTR:

  1. Create tree
  2. Add custom node
  3. Rename or delete custom node
  4. Open bonsai designer

ArgumentNullException: Value cannot be null. Parameter name: key System.Collections.Generic.Dictionary2[TKey,TValue].FindEntry (TKey key) (at <695d1cc93cca45069c528c15c9fdd749>:0) System.Collections.Generic.Dictionary2[TKey,TValue].get_Item (TKey key) (at <695d1cc93cca45069c528c15c9fdd749>:0) Bonsai.Designer.BonsaiCanvas.ReconstructEditorConnections (System.Collections.Generic.Dictionary2[TKey,TValue] nodeMap) (at Assets/3rdParty/BonsaiBehaviourTree/Editor/BonsaiCanvas.cs:214) Bonsai.Designer.BonsaiCanvas..ctor (Bonsai.Core.BehaviourTree tree) (at Assets/3rdParty/BonsaiBehaviourTree/Editor/BonsaiCanvas.cs:28) Bonsai.Designer.BonsaiEditor.SetBehaviourTree (Bonsai.Core.BehaviourTree tree) (at Assets/3rdParty/BonsaiBehaviourTree/Editor/BonsaiEditor.cs:360) Bonsai.Designer.BonsaiWindow.BuildCanvas () (at Assets/3rdParty/BonsaiBehaviourTree/Editor/BonsaiWindow.cs:218) Bonsai.Designer.BonsaiWindow.OnGUI () (at Assets/3rdParty/BonsaiBehaviourTree/Editor/BonsaiWindow.cs:92) UnityEditor.HostView.InvokeOnGUI (UnityEngine.Rect onGUIPosition, UnityEngine.Rect viewRect) (at <63ccfe108ffa44728b417cb47fb2f841>:0) UnityEditor.DockArea.DrawView (UnityEngine.Rect viewRect, UnityEngine.Rect dockAreaRect) (at <63ccfe108ffa44728b417cb47fb2f841>:0) UnityEditor.DockArea.OldOnGUI () (at <63ccfe108ffa44728b417cb47fb2f841>:0) 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 <3b9216b5eb2547d2a9ee9f63fc12b7c2>:0) UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)`

kimsanbaev-karim avatar Aug 25 '23 10:08 kimsanbaev-karim

Pull request https://github.com/luis-l/BonsaiBehaviourTree/pull/33

kimsanbaev-karim avatar Aug 25 '23 11:08 kimsanbaev-karim