Function GridIterationUtilities.ForEachCellIn3DArray
        
                ForEachCellIn3DArray<T>
        
                (int3 size, ref T action)
    
            
            Iterates over a 3D array.
                Public
                    Static
            
        void ForEachCellIn3DArray<T> (
int3  |     size  |         Size of the array.  | 
                
ref T  |     action  |         Your callback struct. The Execute method on the callback struct will be called for each element in the array. It will be passed the x, y and z coordinates of the element as well as the index in the array.  | 
                
Iterates over a 3D array.
This is a helper for iterating over grid graph data, which is typically stored in an array of size width*layers*depth (x*y*z).
In burst-compiled code, this will be essentially as fast as writing the loop code yourself. In C#, it is marginally slower than writing the loop code yourself.