- Home /
Making shorter Tiles on Tilemap from Code
Hello, the following image:
is 66 pixels wide and 64 pixels high. I'm making sprites with its texture, and when I create them (with Sprite.Create
) I set the pixelsPerUnit
value to 66 (the width of the image), so that the tiles touch one another. My only problem is that I don't get the result I am looking for:
The reason is that the image I've provided above, has a transparent upper part: the first 11 rows are entirely transparent. How can I tell the tilemap (from code or on Unity) that I want the height of units to be shorter, so that tiles get drawn one on another?
Your answer
Follow this Question
Related Questions
Generate Tiles Programatically Over Player Position? 0 Answers
Tilemap strange glitch with smooth camera(LWRP) 0 Answers
Pixels per unit with tile palette? 1 Answer
tilepalette problems 0 Answers
How can I disable collision for 1 tile? 4 Answers