Answers for "unity get tile size from tilemap"

C#
1

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
0

why is the tilemap in unity 2d sizing the textures wrong

you will have to set the 'Pixels Per Unit' on your sprite in the inspector to the same size as the tile's size
Posted by: Guest on August-23-2021

C# Answers by Framework

Browse Popular Code Answers by Language