Answers for "unity get amount of tiles in tilemap"

C#
2

unity tilemap get all tiles

foreach (var position in tilemap.cellBounds.allPositionsWithin) {
            if (!tilemap.HasTile(position)) {
                continue;
            }
 
            // Tile is not empty; do stuff
        }
Posted by: Guest on November-07-2020

Code answers related to "unity get amount of tiles in tilemap"

C# Answers by Framework

Browse Popular Code Answers by Language