Function Seeker.CancelCurrentPathRequest

CancelCurrentPathRequest (bool pool=true)

Stop calculating the current path request.

Public
void CancelCurrentPathRequest (

bool

pool=true

If true then the path will be pooled when the pathfinding system is done with it.

)

Stop calculating the current path request.

If this Seeker is currently calculating a path it will be canceled. The callback (usually to a method named OnPathComplete) will soon be called with a path that has the 'error' field set to true.

This does not stop the character from moving, it just aborts the path calculation.