2D Tilemap Issues

Hello,
I have two problems when using the 2D tilemap gameobject:

  1. The first one is when i add my sprite to the tile palette and then add onto the world space, i have this “size” issue seen in the picture below. Is there an easy way to fix it where each sprite represent the equal size of one cell? Should i change the spritesize/cellsize, or is there an “autofill” type function availible?

  1. Might be a stupid question, but why can you only place out sprites? For example i want to easily place out my coins with for example a collider and a script on it, but im not gonna place the coin sprites onto the tilemap, and then afterwards add those components on every coin. My question is then, can you in some way place out prefabs? (Couldn’t put one in the tile palette) To avoid more work?

You need to either change your cell size on the grid or change your sprite’s Pixels Per Unit setting. If each grid cell represents one unit, and that sprite is for instance 32 pixels and should fill a cell, then your Pixels Per Unit for that sprite should be 32.

Check out the 2D extras from Unity:

They include brushes that place gameobjects and prefabs onto the tilemap.