Function WorkItemProcessor.SetGraphDirty

SetGraphDirty (NavGraph graph)

Trigger a graph modification event.

Private
void SetGraphDirty (

NavGraph

graph

)

Trigger a graph modification event.

This will cause a GraphModifier.EventType.PostUpdate event to be issued after all graph updates have finished. Some scripts listen for this event. For example off-mesh links listen to it and will recalculate which nodes they are connected to when it it sent. If a graph is dirtied multiple times, or even if multiple graphs are dirtied, the event will only be sent once.