Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


ResetPath()

Clears the current path.
Read time 1 minuteLast updated 12 days ago

Definition

  • Type: Method
  • Namespace: UnityEngine.AI
  • Assembly: UnityEngine.AIModule
public void ResetPath()

Remarks

When the path is cleared, the agent will not start looking for a new path until SetDestination is called.
Note that if the agent is on an OffMeshLink when this function is called, it will complete the link immediately.