Wrong Tilemap.size ?

I’m working on my game using Unity 2018.2.0b3. When I try to get the size of the tilemap, it seems the size returned from Tilemap.size is not always correct. The size is correct for the large maps, but for the tilemap which has only 1 tile, I got Tilemap.size return something like (12, 6, 1), when I expected getting (1, 1, 1) from it.
PS: The cell size set up in Grid object is 0.48, since the size of the tile sprites is 48x48px.

Edit: found the solution. All I need to do is use Compress Tilemap Bounds from the hidden menu.

1 Like

I have the same problem, with large maps there’s no problem but if I make something inferior to (8,11,1) then it shows exactly that = (8,11,1).