📅  最后修改于: 2022-03-11 14:49:01.478000             🧑  作者: Mango
foreach (var position in tilemap.cellBounds.allPositionsWithin) {
if (!tilemap.HasTile(position)) {
continue;
}
// Tile is not empty; do stuff
}