A* Pathfinding Project
4.1.21
The A* Pathfinding Project for Unity 3D
|
Interface to expose a subset of the WorkItemProcessor functionality. More...
Interface to expose a subset of the WorkItemProcessor functionality.
Public Member Functions | |
void | EnsureValidFloodFill () |
If a WorkItem needs to have a valid flood fill during execution, call this method to ensure there are no pending flood fills. More... | |
void | QueueFloodFill () |
Call during work items to queue a flood fill. More... | |
void | SetGraphDirty (NavGraph graph) |
Trigger a graph modification event. More... | |
void EnsureValidFloodFill | ( | ) |
If a WorkItem needs to have a valid flood fill during execution, call this method to ensure there are no pending flood fills.
Implemented in WorkItemProcessor.
void QueueFloodFill | ( | ) |
Call during work items to queue a flood fill.
An instant flood fill can be done via FloodFill() but this method can be used to batch several updates into one to increase performance. WorkItems which require a valid Flood Fill in their execution can call EnsureValidFloodFill to ensure that a flood fill is done if any earlier work items queued one.
Once a flood fill is queued it will be done after all WorkItems have been executed.
Implemented in WorkItemProcessor.
void SetGraphDirty | ( | NavGraph | graph | ) |
Trigger a graph modification event.
This will cause a #Pathfinding.GraphModifier.PostUpdate event to be issued after all graph updates have finished. If a graph is dirtied multiple times, or even if multiple graphs are dirtied, the event will only be sent once.
Implemented in WorkItemProcessor.