Documentation

Unity Engine

Download Unity

Unity Engine

ResetPath()

Clears the current path.
Read time 1 minuteLast updated 6 hours ago

Definition

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.