Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

unity tilemap get all tiles

foreach (var position in tilemap.cellBounds.allPositionsWithin) {
            if (!tilemap.HasTile(position)) {
                continue;
            }
 
            // Tile is not empty; do stuff
        }
Source by forum.unity.com #
 
PREVIOUS NEXT
Tagged: #unity #tilemap #tiles
ADD COMMENT
Topic
Name
7+4 =