WithinDistance issue after upgrading to version 1.5.7

EVG

Member
After the update, it throws a lot of errors:
Code:
NullReferenceException: Object reference not set to an instance of an object
BehaviorDesigner.Runtime.Tasks.Movement.WithinDistance.OnUpdate () (at Assets/Behavior Designer Movement/Scripts/Tasks/WithinDistance.cs:108)
BehaviorDesigner.Runtime.BehaviorManager.ReevaluateConditionalTasks (BehaviorDesigner.Runtime.BehaviorManager+BehaviorTree behaviorTree) (at <58623c9461324266a5b7839460bb9d26>:0)
BehaviorDesigner.Runtime.BehaviorManager.Tick (BehaviorDesigner.Runtime.BehaviorManager+BehaviorTree behaviorTree) (at <58623c9461324266a5b7839460bb9d26>:0)
BehaviorDesigner.Runtime.BehaviorManager.Tick () (at <58623c9461324266a5b7839460bb9d26>:0)
BehaviorDesigner.Runtime.BehaviorManager.Update () (at <58623c9461324266a5b7839460bb9d26>:0)

This is when Line Of Sight is on. If you turn off this option, then everything is fine. It also does not pass a value to the Returned Object.
 
Thanks, I'll push an update now that fixes this. In my test case I was setting the target object but you'll get that error if targetObject is null.
 
Top