Function PathProcessor.PausePathfinding

PausePathfinding (bool block)

Prevents pathfinding threads from starting to calculate any new paths.

Public
GraphUpdateLock PausePathfinding (

bool

block

If true, this call will block until all pathfinding threads are paused. otherwise the threads will be paused as soon as they are done with what they are currently doing.

)

Prevents pathfinding threads from starting to calculate any new paths.

Return

A lock object. You need to call Unlock on that object to allow pathfinding to resume.

Note

In most cases this should not be called from user code.