Calculation when the project is being build

Hello Everyone…

I have written a custom navmesh system which kind of generates an hexagonal grid when the value is placed on a surface…

What the hexagonal grid generator does is it generates hexagon shaped objects checks if they collide with something or not and then in an internal storage, it stores which grid index is movable and which is not.
After all the data is stored, basically I have no use for grids any more. So I want to do this which the game is being build.

Anyway specific way to do so? Or should I do it in the OnConstruction function and delete the temporary generated actors that detect collision.