Function IConnectionFilter.IsValidConnection
Returns true if the connection should be enabled.
bool IsValidConnection (
int  |     dataIndex  |         Index of the node for which the connection is being tested. This is the index in the data arrays for the graph update, not necessarily the index in the graph.  | 
                
int  |     dataX  |         X coordinate of the node for which the connection is being tested, relative to the updated region.  | 
                
int  |     dataLayer  |         Layer (Y) coordinate of the node for which the connection is being tested, relative to the updated region.  | 
                
int  |     dataZ  |         Z coordinate of the node for which the connection is being tested, relative to the updated region.  | 
                
int  |     direction  |         Direction to the neighbour. See GridNode.HasConnectionInDirection.  | 
                
int  |     neighbourDataIndex  |         Index of the neighbour node. This is the index in the data arrays for the graph update, not necessarily the index in the graph.  | 
                
Returns true if the connection should be enabled.
Connection filters using the Unity Job System for example usage.