Function HierarchicalGraph.JobRecalculateIfNecessary

JobRecalculateIfNecessary (JobHandle dependsOn=…)

Schedule a job to recalculate the hierarchical graph and the connected components if any nodes have been marked as dirty.

Public
JobHandle JobRecalculateIfNecessary (

JobHandle

dependsOn=default

)

Schedule a job to recalculate the hierarchical graph and the connected components if any nodes have been marked as dirty.

Returns dependsOn if nothing has to be done.

Note

Assumes the graph is unchanged until the returned dependency is completed.