Method CreateTerrainGrid
CreateTerrainGrid(TerrainGridCreationContext)
Creates a grid of connected terrain objects for this backend, described by context.
GameObject[,] CreateTerrainGrid(TerrainGridCreationContext context)
Parameters
contextTerrainGridCreationContextThe grid description, holding the tile counts, the tile size, the texture density, and the parent.
Returns
- GameObject[,]
The created tiles indexed as grid[column, row], or an empty array when creation is not possible.
Remarks
Each tile is sized and positioned into the grid, parented under the context parent when one is given, and the tiles' edges are stitched to their neighbors before the grid is returned. This is pure runtime work. No asset files are written, the caller saves any backend data to assets afterward when it runs in the editor. The tiles are not bound to any manager, the caller binds each one through SetupTile(VistaManager, GameObject).