DJ Jub47
New member
When I try to have a NavMesh dragon patrol, the Unity Console throws me this error:
I don't know what the problem is; I've baked the NavMesh on the floor, recreated the Avatar for the dragon, and run through the code in the task, and I don't know what to do. Please help!
Also, if you need it, here's a screenshot (sorry for not full Unity, image was too big if I didn't cut down):
"GetRemainingDistance" can only be called on an active agent that has been placed on a NavMesh.
UnityEngine.AI.NavMeshAgent:get_remainingDistance()
BehaviorDesigner.Runtime.Tasks.Movement.NavMeshMovement:HasArrived() (at Assets/Behavior Designer Movement/Scripts/Tasks/NavMeshMovement.cs:104)
BehaviorDesigner.Runtime.Tasks.Movement.Patrol:OnUpdate() (at Assets/Behavior Designer Movement/Scripts/Tasks/Patrol.cs:45)
BehaviorDesigner.Runtime.BehaviorManager:RunTask(BehaviorTree, Int32, Int32, TaskStatus)
BehaviorDesigner.Runtime.BehaviorManager:Tick(BehaviorTree)
BehaviorDesigner.Runtime.BehaviorManager:Tick()
BehaviorDesigner.Runtime.BehaviorManager:Update()
I don't know what the problem is; I've baked the NavMesh on the floor, recreated the Avatar for the dragon, and run through the code in the task, and I don't know what to do. Please help!
Also, if you need it, here's a screenshot (sorry for not full Unity, image was too big if I didn't cut down):