Possible to run NavMeshAgent in edit mode?

Is it possible to have a NavMeshAgent move to the goal in edit mode? (when the game is not running)

I’m getting the following error when trying to setDestination() from a custom editor:

"SetDestination" can only be called on an active agent that has been placed on a NavMesh.

Edit: Just to clarify, the agent runs fine when I run the game. I’m only having trouble running it from the editor.

Having the same problem

Use NavMesh.CalculatePath(Vector3 sourcePosition, Vector3 targetPosition, int areaMask, AI.NavMeshPath path). Anything NavMeshAgent related doesn’t seem to work in edit mode.