I'm sorry, I'm not sure how to explain this. I'm messing around with procedurally generating tilemaps, and I'm trying to recreate what is happening in the first image.
The much smaller, blue grid matches up with the larger red grid. I can get it to work when the two grids are the same size.
When the grids are a different size the second image happens.
This is the code for the detail grid:
private void AddDetails() // gets called when world map has generated
{
detail.ClearAllTiles();
for (int x = -20; x < 20; x++)
{
for (int y = -20; y < 20; y++)
{
if (display.GetTile(new Vector3Int(x, y, 0)) != null) // the red grid
{
detail.SetTile(new Vector3Int(x, y, 0), tile); // the blue grid
}
}
}
}
Thanks for helping, if you can