Function GridIterationUtilities.ForEachNode
ForEachNode<T>
(int3 arrayBounds, NativeArray<float4> nodeNormals, ref T callback)
Iterate through all nodes that exist.
Public
Static
void ForEachNode<T> (
int3 | arrayBounds | Size of the rectangle of the grid graph that is being updated/scanned |
NativeArray<float4> | nodeNormals | Data for all node normals. This is used to determine if a node exists (important for layered grid graphs). |
ref T | callback | The ModifyNode method on the callback struct will be called for each node. |
Iterate through all nodes that exist.
See
Writing Custom Grid Graph Rules for example usage.