Getting an error that makes the editor window massively lag.
This was after I set an external behaviour in my unit's component.
Now I deleted the external behaviour but whenever I am on a prefab with a BehaviourTree component it lags a lot but no errors pop up.
I really loved the idea of this tool but the errors and the lags makes it pretty much unusable. I'll check to see if it's not related to my unity project.
This was after I set an external behaviour in my unit's component.
Code:
InvalidCastException: Specified cast is not valid.
BinaryDeserialization.BytesToSharedVariable (BehaviorDesigner.Runtime.FieldSerializationData fieldSerializationData, System.Collections.Generic.Dictionary`2[TKey,TValue] fieldIndexMap, System.Byte[] bytes, System.Int32 dataPosition, BehaviorDesigner.Runtime.IVariableSource variableSource, System.Boolean fromField, System.Int32 hashPrefix) (at <ddb5579d0d23478c9f73ec2f99600079>:0)
BinaryDeserialization.Load (BehaviorDesigner.Runtime.TaskSerializationData taskData, BehaviorDesigner.Runtime.BehaviorSource behaviorSource) (at <ddb5579d0d23478c9f73ec2f99600079>:0)
BehaviorDesigner.Runtime.BehaviorSource.CheckForSerialization (System.Boolean force, BehaviorDesigner.Runtime.BehaviorSource behaviorSource) (at <ddb5579d0d23478c9f73ec2f99600079>:0)
BehaviorDesigner.Runtime.BehaviorSource.GetAllVariables () (at <ddb5579d0d23478c9f73ec2f99600079>:0)
BehaviorDesigner.Editor.BehaviorDesignerWindow.LoadBehavior (BehaviorDesigner.Runtime.BehaviorSource behaviorSource, System.Boolean loadPrevBehavior, System.Boolean inspectorLoad) (at <4b28e19850d5443cb0dab9a889df4542>:0)
BehaviorDesigner.Editor.BehaviorDesignerWindow.UpdateTree (System.Boolean firstLoad) (at <4b28e19850d5443cb0dab9a889df4542>:0)
BehaviorDesigner.Editor.BehaviorDesignerWindow.OnSelectionChange () (at <4b28e19850d5443cb0dab9a889df4542>:0)
System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <437ba245d8404784b9fbab9b439ac908>: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 <437ba245d8404784b9fbab9b439ac908>:0)
System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at <437ba245d8404784b9fbab9b439ac908>:0)
UnityEditor.HostView.Invoke (System.String methodName, System.Object obj) (at <af78ad00a40d4f61b82afc6cafb0a416>:0)
UnityEditor.HostView.Invoke (System.String methodName) (at <af78ad00a40d4f61b82afc6cafb0a416>:0)
UnityEditor.HostView.OnSelectionChange () (at <af78ad00a40d4f61b82afc6cafb0a416>:0)
Now I deleted the external behaviour but whenever I am on a prefab with a BehaviourTree component it lags a lot but no errors pop up.
I really loved the idea of this tool but the errors and the lags makes it pretty much unusable. I'll check to see if it's not related to my unity project.
Last edited: