Function GridIterationUtilities.FilterNodeConnections
FilterNodeConnections<T>
(IntBounds bounds, NativeArray<ulong> nodeConnections, bool layeredDataLayout, ref T filter)
Iterate through all enabled connections of all nodes.
Public
Static
void FilterNodeConnections<T> (
bounds | Sub-rectangle of the grid graph that is being updated/scanned |
|
NativeArray<ulong> | nodeConnections | Data with all node connections. |
bool | layeredDataLayout | Should be true for layered grid graphs and false otherwise. |
ref T | filter | Your callback struct. The IsValidConnection method on the callback struct will be called for each connection. If false is returned, the connection will be disabled. |
Iterate through all enabled connections of all nodes.
See
Writing Custom Grid Graph Rules for example usage.