After adding a new blackboard variable I have to resize the blackboard panel to update the variables.
After removing a blackboard variable all variables except the first one disappear. I have to resize the blackboard panel to make the other ones reappear again.
Hi @TrizZzle , are there any exception? Can you share a video or a gif showing the issue?
We should be releasing the new version in the next few days.
I didn’t see the error message last time. It shows only for the behavior graph where I use my own behavior script. I guess I did something wrong there, I’m just figuring out how this works.
KeyNotFoundException: The given key 'Graph.TypedVariableModel`1[UnityEngine.Object]' was not present in the dictionary.
System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) (at <6122523d36af4c6bbd1e418f9bebd8ba>:0)
Graph.NodeRegistry.GetVariableUIType (System.Type type) (at ./Library/PackageCache/com.unity.muse.behavior/NodeRegistry.cs:29)
Graph.BlackboardView.<InitializeListView>b__24_1 (UnityEngine.UIElements.VisualElement element, System.Int32 i) (at ./Library/PackageCache/com.unity.muse.behavior/Blackboard/BlackboardView.cs:148)
UnityEngine.UIElements.ListViewController.BindItem (UnityEngine.UIElements.VisualElement element, System.Int32 index) (at <6bdb60f62d8148cd81af0b4da5f9d7d1>:0)
UnityEngine.UIElements.CollectionViewController.InvokeBindItem (UnityEngine.UIElements.ReusableCollectionItem reusableItem, System.Int32 index) (at <6bdb60f62d8148cd81af0b4da5f9d7d1>:0)
UnityEngine.UIElements.BaseListViewController.InvokeBindItem (UnityEngine.UIElements.ReusableCollectionItem reusableItem, System.Int32 index) (at <6bdb60f62d8148cd81af0b4da5f9d7d1>:0)
UnityEngine.UIElements.VerticalVirtualizationController`1[T].Setup (T recycledItem, System.Int32 newIndex) (at <6bdb60f62d8148cd81af0b4da5f9d7d1>:0)
UnityEngine.UIElements.DynamicHeightVirtualizationController`1[T].Resize (UnityEngine.Vector2 size) (at <6bdb60f62d8148cd81af0b4da5f9d7d1>:0)
UnityEngine.UIElements.BaseVerticalCollectionView.Resize (UnityEngine.Vector2 size) (at <6bdb60f62d8148cd81af0b4da5f9d7d1>:0)
UnityEngine.UIElements.BaseVerticalCollectionView.OnSizeChanged (UnityEngine.UIElements.GeometryChangedEvent evt) (at <6bdb60f62d8148cd81af0b4da5f9d7d1>:0)
UnityEngine.UIElements.EventCallbackFunctor`1[TEventType].Invoke (UnityEngine.UIElements.EventBase evt) (at <6bdb60f62d8148cd81af0b4da5f9d7d1>:0)
UnityEngine.UIElements.EventCallbackRegistry+DynamicCallbackList.Invoke (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.BaseVisualElementPanel panel, UnityEngine.UIElements.VisualElement target) (at <6bdb60f62d8148cd81af0b4da5f9d7d1>:0)
UnityEngine.UIElements.EventDispatchUtilities.HandleEventAtTargetAndDefaultPhase (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.BaseVisualElementPanel panel, UnityEngine.UIElements.VisualElement target) (at <6bdb60f62d8148cd81af0b4da5f9d7d1>:0)
UnityEngine.UIElements.UIRLayoutUpdater.DispatchChangeEvents (System.Collections.Generic.List`1[T] changeEvents, System.Int32 currentLayoutPass) (at <6bdb60f62d8148cd81af0b4da5f9d7d1>:0)
UnityEngine.UIElements.UIRLayoutUpdater.Update () (at <6bdb60f62d8148cd81af0b4da5f9d7d1>:0)
UnityEngine.UIElements.VisualTreeUpdater.UpdateVisualTreePhase (UnityEngine.UIElements.VisualTreeUpdatePhase phase) (at <6bdb60f62d8148cd81af0b4da5f9d7d1>:0)
UnityEngine.UIElements.Panel.UpdateForRepaint () (at <6bdb60f62d8148cd81af0b4da5f9d7d1>:0)
UnityEngine.UIElements.Panel.Repaint (UnityEngine.Event e) (at <6bdb60f62d8148cd81af0b4da5f9d7d1>:0)
UnityEditor.UIElements.EditorPanel.Repaint (UnityEngine.Event e) (at <60d902f467c0449fbc784dc587ae1edb>:0)
UnityEngine.UIElements.UIElementsUtility.DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at <6bdb60f62d8148cd81af0b4da5f9d7d1>:0)
UnityEngine.UIElements.UIElementsUtility.UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& eventHandled) (at <6bdb60f62d8148cd81af0b4da5f9d7d1>:0)
UnityEngine.UIElements.UIEventRegistration.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at <6bdb60f62d8148cd81af0b4da5f9d7d1>:0)
UnityEngine.UIElements.UIEventRegistration+<>c.<.cctor>b__1_2 (System.Int32 i, System.IntPtr ptr) (at <6bdb60f62d8148cd81af0b4da5f9d7d1>:0)
UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& result) (at <4945623ec95c4ff9898acf4b29822cc1>:0)
I hope this helps.
Thank you so much! That’s an odd one. We’re in the process of releasing the new version and I’m pretty sure this shouldn’t happen anymore but I’ll look double check this to be sure!
Hey @TrizZzle , can you try it with the latest version of the package? Please note the new one is released under com.unity.behavior
@ShaneeNishry Unfortunately I don’t have my test project anymore where the error occured. But I will try the new version. Thanks for the update!