I'm getting an error when I try to make an object wander

muffinsailboat

New member
I am a total, absolute beginner to AI, and when I tried to make an object wander, I kept getting this error. ""GetRemainingDistance" can only be called on an active agent that has been placed on a NavMesh." All I've done so far is set the object to wander in the behavior tree, and given it a Nav Mesh Agent. How can I fix this?
 
Make sure you've baked the navmesh:

 
Top