Recalculating Tile Locations¶
Overview¶
Sometimes, during development with landscape-based grids, you may realize that your landscape needs adjustments. However, when you sculpt or switch the landscape, your existing grid will lose its visual alignment. In such cases, you need to recalculate each tile's position to ensure it aligns properly with the new grid surface.
Note
This method isn't limited to just landscape-based grids; it can be used to fix any inconsistencies on any grid surface! The above is just an example.
Steps¶
-
Here's a landscape-based grid populated with random obstacles.
-
After some changes to the landscape, you may notice that the tile visuals no longer align with the new adjustments.
-
Don’t worry! The solution is simple: head to the
BP_GridManager
and click the Recalculate Surface button. -
This will automatically remap the positions of the existing tiles to fit perfectly with the new surface.
Dealing with Imperfect Terrain¶
In some cases, when dealing with landscapes with significant variations, tile visuals may not align correctly. They might not fit neatly within each outline or could be misaligned along the Z-axis. Fortunately, this is easy to resolve.
Steps¶
-
Open
BP_GridManager
and tweak theTileMinScale
andTileMaxScale
values as needed. Increasing these values typically fixes the issue.
(For this demonstration, they’ve been intentionally set low. Under normal circumstances, this problem shouldn’t occur.) -
Once the values are adjusted, simply click the Recalculate Surface button.