wartoshika
Member
I was trying to replicate the behavior tree seen in this video:
While doing so I was adding the WithinRange Task but a bunch of errors were put into the console and the editor window started to go blank. If I now want to open the editor window an error is printed and the tree stays blank.
I did not use any subtrees so the mentioned circular reference is not my problem. This is my error:
If you need any more information please let me know. I would also like to provide the serialized data but I don't know how to.
Unity 6.0.48f1
Behavior Designer Pro 2.0.10p2
Graph Designer 2.0.9
SensePack 1.0.2
Thanks
While doing so I was adding the WithinRange Task but a bunch of errors were put into the console and the editor window started to go blank. If I now want to open the editor window an error is printed and the tree stays blank.
I did not use any subtrees so the mentioned circular reference is not my problem. This is my error:
Code:
NullReferenceException: Object reference not set to an instance of an object
Opsive.GraphDesigner.Editor.Views.GraphView.LoadNode (Opsive.GraphDesigner.Runtime.ILogicNode node, System.Int32 index) (at <e7e4f032c84047298b25368f72de26fd>:0)
Opsive.GraphDesigner.Editor.Views.GraphView.LoadGraph () (at <e7e4f032c84047298b25368f72de26fd>:0)
Opsive.GraphDesigner.Editor.GraphWindow.LoadGraph (Opsive.GraphDesigner.Runtime.IGraph graph, System.Boolean force, System.Boolean updateActive) (at <e7e4f032c84047298b25368f72de26fd>:0)
Opsive.GraphDesigner.Editor.GraphWindow.LoadActiveObject (System.Boolean force) (at <e7e4f032c84047298b25368f72de26fd>:0)
Opsive.GraphDesigner.Editor.GraphWindow.OnEnable () (at <e7e4f032c84047298b25368f72de26fd>:0)
UnityEditor.EditorWindow:GetWindow(Boolean, String)
Opsive.BehaviorDesigner.Editor.BehaviorDesignerWindow:ShowWindow()
Opsive.BehaviorDesigner.Editor.BehaviorDesignerWindow:ShowWindow(IGraph)
Opsive.BehaviorDesigner.Editor.Inspectors.<>c__DisplayClass3_0:<ShowHeaderElements>b__0()
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)
Code:
Error: Unable to deserialize Behavior Tree (Index 0). This can be caused by recursive subtree references.
UnityEngine.Debug:LogError (object)
Opsive.BehaviorDesigner.Runtime.BehaviorTreeData:DeserializeInternal (Opsive.GraphDesigner.Runtime.IGraph,bool,bool,bool,Opsive.GraphDesigner.Runtime.Variables.SharedVariableOverride[]) (at ./Packages/com.opsive.behaviordesigner/Runtime/BehaviorTreeData.cs:374)
Opsive.BehaviorDesigner.Runtime.BehaviorTreeData:Deserialize (Opsive.GraphDesigner.Runtime.IGraph,bool,bool,bool,Opsive.GraphDesigner.Runtime.Variables.SharedVariableOverride[]) (at ./Packages/com.opsive.behaviordesigner/Runtime/BehaviorTreeData.cs:358)
Opsive.BehaviorDesigner.Runtime.BehaviorTree:Deserialize (bool) (at ./Packages/com.opsive.behaviordesigner/Runtime/BehaviorTree.cs:208)
Opsive.GraphDesigner.Editor.GraphWindow:LoadGraph (Opsive.GraphDesigner.Runtime.IGraph,bool,bool)
Opsive.GraphDesigner.Editor.GraphWindow:LoadActiveObject (bool)
Opsive.GraphDesigner.Editor.GraphWindow:OnFocus ()
UnityEditor.EditorWindow:GetWindow<Opsive.BehaviorDesigner.Editor.BehaviorDesignerWindow> (bool,string)
Opsive.BehaviorDesigner.Editor.BehaviorDesignerWindow:ShowWindow ()
Opsive.BehaviorDesigner.Editor.BehaviorDesignerWindow:ShowWindow (Opsive.GraphDesigner.Runtime.IGraph)
Opsive.BehaviorDesigner.Editor.Inspectors.BehaviorTreeInspector/<>c__DisplayClass3_0:<ShowHeaderElements>b__0 ()
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
Code:
NullReferenceException: Object reference not set to an instance of an object
Opsive.BehaviorDesigner.Runtime.BehaviorTreeData.DeserializeInternal (Opsive.GraphDesigner.Runtime.IGraph graph, System.Boolean force, System.Boolean variableForce, System.Boolean injectSubtrees, Opsive.GraphDesigner.Runtime.Variables.SharedVariableOverride[] sharedVariableOverrides) (at ./Packages/com.opsive.behaviordesigner/Runtime/BehaviorTreeData.cs:462)
Opsive.BehaviorDesigner.Runtime.BehaviorTreeData.Deserialize (Opsive.GraphDesigner.Runtime.IGraph graph, System.Boolean force, System.Boolean variableForce, System.Boolean injectSubtrees, Opsive.GraphDesigner.Runtime.Variables.SharedVariableOverride[] sharedVariableOverrides) (at ./Packages/com.opsive.behaviordesigner/Runtime/BehaviorTreeData.cs:358)
Opsive.BehaviorDesigner.Runtime.BehaviorTree.Deserialize (System.Boolean force) (at ./Packages/com.opsive.behaviordesigner/Runtime/BehaviorTree.cs:208)
Opsive.BehaviorDesigner.Editor.Inspectors.VariableUtility.SyncReferenceVariables (Opsive.GraphDesigner.Runtime.IGraph graph) (at <0cb83ee363c54487877a6cfb5c462b0c>:0)
Opsive.BehaviorDesigner.Editor.Inspectors.BehaviorTreeInspector.ShowHeaderElements (UnityEngine.UIElements.VisualElement container) (at <0cb83ee363c54487877a6cfb5c462b0c>:0)
Opsive.Shared.Editor.UIElements.UIElementsInspector.DrawElements (UnityEngine.UIElements.VisualElement container, System.Boolean nested) (at <1e4b410f1e3542e28ea9bddf270eaa24>:0)
Opsive.Shared.Editor.UIElements.UIElementsInspector.CreateInspectorGUI () (at <1e4b410f1e3542e28ea9bddf270eaa24>:0)
UnityEditor.UIElements.InspectorElement.CreateInspectorElementUsingUIToolkit (UnityEditor.Editor targetEditor) (at <8206af52fcad4600bf0422f9f88e9042>:0)
UnityEditor.UIElements.InspectorElement.CreateInspectorElementFromSerializedObject (UnityEditor.SerializedObject bindObject) (at <8206af52fcad4600bf0422f9f88e9042>:0)
UnityEditor.UIElements.InspectorElement.HandleEventBubbleUp (UnityEngine.UIElements.EventBase evt) (at <8206af52fcad4600bf0422f9f88e9042>:0)
UnityEngine.UIElements.CallbackEventHandler.HandleEventBubbleUpInternal (UnityEngine.UIElements.EventBase evt) (at <b4f75f0eb2d14004826911645c6175d6>:0)
UnityEngine.UIElements.EventDispatchUtilities.HandleEvent_BubbleUpHandleEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.BaseVisualElementPanel panel, UnityEngine.UIElements.VisualElement element, System.Boolean disabled) (at <b4f75f0eb2d14004826911645c6175d6>:0)
UnityEngine.UIElements.EventDispatchUtilities.HandleEventAtTargetAndDefaultPhase (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.BaseVisualElementPanel panel, UnityEngine.UIElements.VisualElement target) (at <b4f75f0eb2d14004826911645c6175d6>:0)
UnityEditor.UIElements.Bindings.SerializedObjectBindingContext.SendBindingEvent[TEventType] (TEventType evt, UnityEngine.UIElements.VisualElement target) (at <c347caf88b6948589611758b2e6040fd>:0)
UnityEditor.UIElements.Bindings.SerializedObjectBindingContext.BindTree (UnityEngine.UIElements.VisualElement element, UnityEditor.SerializedProperty parentProperty) (at <c347caf88b6948589611758b2e6040fd>:0)
UnityEditor.UIElements.Bindings.SerializedObjectBindingContext.ContinueBinding (UnityEngine.UIElements.VisualElement element, UnityEditor.SerializedProperty parentProperty) (at <c347caf88b6948589611758b2e6040fd>:0)
UnityEditor.UIElements.Bindings.SerializedObjectBindingContext.Bind (UnityEngine.UIElements.VisualElement element) (at <c347caf88b6948589611758b2e6040fd>:0)
UnityEditor.UIElements.Bindings.DefaultSerializedObjectBindingImplementation.Bind (UnityEngine.UIElements.VisualElement element, UnityEditor.SerializedObject obj) (at <c347caf88b6948589611758b2e6040fd>:0)
UnityEditor.UIElements.BindingExtensions.Bind (UnityEngine.UIElements.VisualElement element, UnityEditor.SerializedObject obj) (at <8206af52fcad4600bf0422f9f88e9042>:0)
UnityEditor.UIElements.InspectorElement..ctor (UnityEditor.SerializedObject obj, UnityEditor.Editor editor, UnityEditor.UIElements.InspectorElement+DefaultInspectorFramework defaultInspectorFramework) (at <8206af52fcad4600bf0422f9f88e9042>:0)
UnityEditor.UIElements.InspectorElement..ctor (UnityEditor.Editor editor, UnityEditor.UIElements.InspectorElement+DefaultInspectorFramework defaultInspectorFramework) (at <8206af52fcad4600bf0422f9f88e9042>:0)
UnityEditor.UIElements.InspectorElement..ctor (UnityEditor.Editor editor) (at <8206af52fcad4600bf0422f9f88e9042>:0)
UnityEditor.UIElements.EditorElement.BuildInspectorElement () (at <8206af52fcad4600bf0422f9f88e9042>:0)
UnityEditor.UIElements.EditorElement.CreateInspectorElement () (at <8206af52fcad4600bf0422f9f88e9042>:0)
UnityEditor.EditorElementUpdater.CreateInspectorElementsForMilliseconds (System.Int64 targetMilliseconds) (at <8206af52fcad4600bf0422f9f88e9042>:0)
UnityEditor.PropertyEditor.Update () (at <8206af52fcad4600bf0422f9f88e9042>:0)
UnityEditor.HostView.SendUpdate () (at <8206af52fcad4600bf0422f9f88e9042>:0)
UnityEditor.EditorApplication.Internal_CallUpdateFunctions () (at <8206af52fcad4600bf0422f9f88e9042>:0)
If you need any more information please let me know. I would also like to provide the serialized data but I don't know how to.
Unity 6.0.48f1
Behavior Designer Pro 2.0.10p2
Graph Designer 2.0.9
SensePack 1.0.2
Thanks