Yifan Lu
Tilemap too small
There are a few different ways of resizing the tilemap, each comes with a different result:
- Change the Scale or Cell Size of Grid – when you create a new Tilemap, Unity will automatically generate two game objects: a Grid with a Tilemap child. You can change the Scale field of the Grid’s transform or Cell Size in the Grid component. Changing the scale will stretch all tiles in the tilemap, whereas changing the Cell Size will leave the tiles unchanged – only the actual size of a cell will be changed.
- Scale the game object with Tilemap component attached – this will stretch all tiles in all scaled directions,
- Change orientation to Custom – by changing the Orientation field of Tilemap component, the Scale fields are now editable. Changing this field will resize the sprite of each tile, leaving the actual cell size untouched (this might cause tiles to overlap),
- Change the size of the particular tiles – by clicking on a tile in a Tile Palette window will show Grid Selection in the Inspector. You can change the Scale field of a tile, which have a similar effect as step 3, but will affect only a particular tile.
10 replies