Some context. I have used an older version of BD for awhile in Unity 5.6.6. I updated to BD v1.6 and it works fine in 5.6.6.
When I try to run or open an external BT in the BD Editor window in 2018.3 I get a null reference as it tries to deserialize the data. I noticed BD received an update (1.6.1) for 2018.3 support. I deleted the old folder structure and imported the source code package from this site. I then tried to view another BT and I get the same error.
LoadField seems to return null when the fieldType is an int but not assignable to a SharedVariable. This is odd since SharedInt exists in the BehaviorDesigner.Runtime namespace.
When I try to run or open an external BT in the BD Editor window in 2018.3 I get a null reference as it tries to deserialize the data. I noticed BD received an update (1.6.1) for 2018.3 support. I deleted the old folder structure and imported the source code package from this site. I then tried to view another BT and I get the same error.
LoadField seems to return null when the fieldType is an int but not assignable to a SharedVariable. This is odd since SharedInt exists in the BehaviorDesigner.Runtime namespace.
Code:
NullReferenceException: Object reference not set to an instance of an object
BinaryDeserialization.LoadTask (BehaviorDesigner.Runtime.TaskSerializationData taskSerializationData, BehaviorDesigner.Runtime.FieldSerializationData fieldSerializationData, System.Collections.Generic.List`1[BehaviorDesigner.Runtime.Tasks.Task]& taskList, BehaviorDesigner.Runtime.BehaviorSource& behaviorSource) (at Assets/ThirdParty/Behavior Designer/Runtime/BinaryDeserialization.cs:319)
BinaryDeserialization.Load (BehaviorDesigner.Runtime.TaskSerializationData taskData, BehaviorDesigner.Runtime.BehaviorSource behaviorSource) (at Assets/ThirdParty/Behavior Designer/Runtime/BinaryDeserialization.cs:124)
BehaviorDesigner.Runtime.BehaviorSource.CheckForSerialization (System.Boolean force, BehaviorDesigner.Runtime.BehaviorSource behaviorSource) (at Assets/ThirdParty/Behavior Designer/Runtime/BehaviorSource.cs:76)
BehaviorDesigner.Editor.GraphDesigner.Load (BehaviorDesigner.Runtime.BehaviorSource behaviorSource, System.Boolean loadPrevBehavior, UnityEngine.Vector2 nodePosition) (at <ae691f566f7448529b3a0daf70d70cb7>:0)
BehaviorDesigner.Editor.BehaviorDesignerWindow.LoadBehavior (BehaviorDesigner.Runtime.BehaviorSource behaviorSource, System.Boolean loadPrevBehavior, System.Boolean inspectorLoad) (at <ae691f566f7448529b3a0daf70d70cb7>:0)
BehaviorDesigner.Editor.BehaviorDesignerWindow.ReloadPreviousBehavior () (at <ae691f566f7448529b3a0daf70d70cb7>:0)
BehaviorDesigner.Editor.BehaviorDesignerWindow.OnFocus () (at <ae691f566f7448529b3a0daf70d70cb7>:0)
System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <ac823e2bb42b41bda67924a45a0173c3>:0)
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <ac823e2bb42b41bda67924a45a0173c3>:0)
System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at <ac823e2bb42b41bda67924a45a0173c3>:0)
UnityEditor.HostView.Invoke (System.String methodName, System.Object obj) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:342)
UnityEditor.HostView.Invoke (System.String methodName) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:336)
UnityEditor.HostView.OnFocus () (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:146)