V
V
Void592022-02-12 21:28:55
Unity
Void59, 2022-02-12 21:28:55

How to line up pixel tiles in Unity?

Good day!
I decided to try my hand at creating pixel games. A problem immediately surfaced: how can I set the pixel tiles (for example, the floor) evenly, without gaps and overlaps, pixel by pixel, while not spending hours adjusting each tile manually, moving hundredths and thousandths of a centimeter?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
L
LittleBob, 2022-02-12
@Void59

You should use Tilemaps. A very handy unity tool.
Here is an example tutorial.
https://www.youtube.com/watch?v=DbzH-Z1fbU4

M
Mimocodil, 2022-02-13
@Ezekiel4

Menu Edit -> Grid and Snap Settings.
World Snap is a global grid, Increment Snap is a virtual grid where you place an object. Set the step value (Move xyz) to match the size of your object. Select the object and click "All axes" in the same window. Then turn on the Move Tool (top panel) and hold down the Ctrl key and try to move your object by the arrows.
If we are talking not about a couple of dozen, but about hundreds of objects, then it’s better to study the tilemaps, from LittleBob’s answer

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question