To try out BD Pro in our game, which uses ECS, I've added the Behavior Tree script to a GO in an entities subscene, clicked "Open", added a "Start" node and tried adding a "Sequence" node to it. Doing this I get
This happens with every of the composite nodes (and, just tested, also with every other node from the spacebar menu).
If I go to one of the samples from the package and try to add a Sequence node (or any other node) as a child of an node in one of the existing graph, I get a different exception
Unity 6. BD Pro 2.0.1.
NullReferenceException: Object reference not set to an instance of an object
Opsive.GraphDesigner.Editor.GraphWindow.AddNodeProperties (System.Collections.Generic.List`1[Opsive.GraphDesigner.Runtime.LogicNodeProperties]& nodesData, Opsive.GraphDesigner.Runtime.ILogicNode node) (at <411f6cab61f547fc9934c1ecb61bf909>:0)
Opsive.GraphDesigner.Editor.GraphWindow.SerializeGraph (System.Boolean force) (at <411f6cab61f547fc9934c1ecb61bf909>:0)
Opsive.GraphDesigner.Editor.Views.GraphView.AddNode (System.Object selectedObject, System.Type baseType, UnityEngine.Vector2 position) (at <411f6cab61f547fc9934c1ecb61bf909>:0)
Opsive.GraphDesigner.Editor.Elements.Edge.OnFilterWindowSelection (System.Object selectedObject, System.Type baseType, UnityEngine.Vector2 windowPosition) (at <411f6cab61f547fc9934c1ecb61bf909>:0)
Opsive.Shared.Editor.UIElements.FilterWindow.SelectObject (System.Object selectedObject, System.Type baseType) (at <d3e3c74dbd3d4cf58de31b5794b64d3e>:0)
Opsive.Shared.Editor.UIElements.FilterWindow.SelectElement (Opsive.Shared.Editor.UIElements.FilterWindowProvider+Element selectedElement) (at <d3e3c74dbd3d4cf58de31b5794b64d3e>:0)
Opsive.Shared.Editor.UIElements.FilterWindow+ListViewContainer+FilterElement.OnMouseDown (UnityEngine.UIElements.MouseDownEvent evt) (at <d3e3c74dbd3d4cf58de31b5794b64d3e>:0)
UnityEngine.UIElements.EventCallbackFunctor`1[TEventType].Invoke (UnityEngine.UIElements.EventBase evt) (at <24e165613ea9441aa6d9c8989219aecd>:0)
UnityEngine.UIElements.EventCallbackRegistry+DynamicCallbackList.Invoke (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.BaseVisualElementPanel panel, UnityEngine.UIElements.VisualElement target) (at <24e165613ea9441aa6d9c8989219aecd>:0)
UnityEngine.UIElements.EventDispatchUtilities.HandleEventAcrossPropagationPathWithCompatibilityEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.EventBase compatibilityEvt, UnityEngine.UIElements.BaseVisualElementPanel panel, UnityEngine.UIElements.VisualElement target, System.Boolean isCapturingTarget) (at <24e165613ea9441aa6d9c8989219aecd>:0)
UnityEngine.UIElements.EventDispatchUtilities.DispatchToCachedElementUnderPointerOrPanelRoot (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.BaseVisualElementPanel panel, System.Int32 pointerId, UnityEngine.Vector2 position) (at <24e165613ea9441aa6d9c8989219aecd>:0)
UnityEngine.UIElements.EventDispatchUtilities.DispatchToCapturingElementOrElementUnderPointer (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.BaseVisualElementPanel panel, System.Int32 pointerId, UnityEngine.Vector2 position) (at <24e165613ea9441aa6d9c8989219aecd>:0)
UnityEngine.UIElements.PointerEventBase`1[T].Dispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at <24e165613ea9441aa6d9c8989219aecd>:0)
UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.BaseVisualElementPanel panel) (at <24e165613ea9441aa6d9c8989219aecd>:0)
UnityEngine.UIElements.EventDispatcher.Dispatch (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.BaseVisualElementPanel panel, UnityEngine.UIElements.DispatchMode dispatchMode) (at <24e165613ea9441aa6d9c8989219aecd>:0)
UnityEngine.UIElements.BaseVisualElementPanel.SendEvent (UnityEngine.UIElements.EventBase e, UnityEngine.UIElements.DispatchMode dispatchMode) (at <24e165613ea9441aa6d9c8989219aecd>:0)
UnityEngine.UIElements.UIElementsUtility.DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at <24e165613ea9441aa6d9c8989219aecd>:0)
UnityEngine.UIElements.UIElementsUtility.UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& eventHandled) (at <24e165613ea9441aa6d9c8989219aecd>:0)
UnityEngine.UIElements.UIEventRegistration.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at <24e165613ea9441aa6d9c8989219aecd>:0)
UnityEngine.UIElements.UIEventRegistration+<>c.<.cctor>b__1_2 (System.Int32 i, System.IntPtr ptr) (at <24e165613ea9441aa6d9c8989219aecd>:0)
UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& result) (at <9ac54da9a3624080ae596e505f7da9ed>:0)
This happens with every of the composite nodes (and, just tested, also with every other node from the spacebar menu).
If I go to one of the samples from the package and try to add a Sequence node (or any other node) as a child of an node in one of the existing graph, I get a different exception
IndexOutOfRangeException: Index was outside the bounds of the array.
Opsive.GraphDesigner.Editor.GraphWindow.AddNodeProperties (System.Collections.Generic.List`1[Opsive.GraphDesigner.Runtime.LogicNodeProperties]& nodesData, Opsive.GraphDesigner.Runtime.ILogicNode node) (at <411f6cab61f547fc9934c1ecb61bf909>:0)
Opsive.GraphDesigner.Editor.GraphWindow.SerializeGraph (System.Boolean force) (at <411f6cab61f547fc9934c1ecb61bf909>:0)
Opsive.GraphDesigner.Editor.Views.GraphView.AddNode (System.Object selectedObject, System.Type baseType, UnityEngine.Vector2 position) (at <411f6cab61f547fc9934c1ecb61bf909>:0)
Opsive.GraphDesigner.Editor.Elements.Edge.OnFilterWindowSelection (System.Object selectedObject, System.Type baseType, UnityEngine.Vector2 windowPosition) (at <411f6cab61f547fc9934c1ecb61bf909>:0)
Opsive.Shared.Editor.UIElements.FilterWindow.SelectObject (System.Object selectedObject, System.Type baseType) (at <d3e3c74dbd3d4cf58de31b5794b64d3e>:0)
Opsive.Shared.Editor.UIElements.FilterWindow.SelectElement (Opsive.Shared.Editor.UIElements.FilterWindowProvider+Element selectedElement) (at <d3e3c74dbd3d4cf58de31b5794b64d3e>:0)
Opsive.Shared.Editor.UIElements.FilterWindow+ListViewContainer+FilterElement.OnMouseDown (UnityEngine.UIElements.MouseDownEvent evt) (at <d3e3c74dbd3d4cf58de31b5794b64d3e>:0)
UnityEngine.UIElements.EventCallbackFunctor`1[TEventType].Invoke (UnityEngine.UIElements.EventBase evt) (at <24e165613ea9441aa6d9c8989219aecd>:0)
UnityEngine.UIElements.EventCallbackRegistry+DynamicCallbackList.Invoke (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.BaseVisualElementPanel panel, UnityEngine.UIElements.VisualElement target) (at <24e165613ea9441aa6d9c8989219aecd>:0)
UnityEngine.UIElements.EventDispatchUtilities.HandleEventAcrossPropagationPathWithCompatibilityEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.EventBase compatibilityEvt, UnityEngine.UIElements.BaseVisualElementPanel panel, UnityEngine.UIElements.VisualElement target, System.Boolean isCapturingTarget) (at <24e165613ea9441aa6d9c8989219aecd>:0)
UnityEngine.UIElements.EventDispatchUtilities.DispatchToCachedElementUnderPointerOrPanelRoot (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.BaseVisualElementPanel panel, System.Int32 pointerId, UnityEngine.Vector2 position) (at <24e165613ea9441aa6d9c8989219aecd>:0)
UnityEngine.UIElements.EventDispatchUtilities.DispatchToCapturingElementOrElementUnderPointer (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.BaseVisualElementPanel panel, System.Int32 pointerId, UnityEngine.Vector2 position) (at <24e165613ea9441aa6d9c8989219aecd>:0)
UnityEngine.UIElements.PointerEventBase`1[T].Dispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at <24e165613ea9441aa6d9c8989219aecd>:0)
UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.BaseVisualElementPanel panel) (at <24e165613ea9441aa6d9c8989219aecd>:0)
UnityEngine.UIElements.EventDispatcher.Dispatch (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.BaseVisualElementPanel panel, UnityEngine.UIElements.DispatchMode dispatchMode) (at <24e165613ea9441aa6d9c8989219aecd>:0)
UnityEngine.UIElements.BaseVisualElementPanel.SendEvent (UnityEngine.UIElements.EventBase e, UnityEngine.UIElements.DispatchMode dispatchMode) (at <24e165613ea9441aa6d9c8989219aecd>:0)
UnityEngine.UIElements.UIElementsUtility.DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at <24e165613ea9441aa6d9c8989219aecd>:0)
UnityEngine.UIElements.UIElementsUtility.UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& eventHandled) (at <24e165613ea9441aa6d9c8989219aecd>:0)
UnityEngine.UIElements.UIEventRegistration.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at <24e165613ea9441aa6d9c8989219aecd>:0)
UnityEngine.UIElements.UIEventRegistration+<>c.<.cctor>b__1_2 (System.Int32 i, System.IntPtr ptr) (at <24e165613ea9441aa6d9c8989219aecd>:0)
UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& result) (at <9ac54da9a3624080ae596e505f7da9ed>:0)
Unity 6. BD Pro 2.0.1.
Last edited: