Answer the question
In order to leave comments, you need to log in
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
You should use Tilemaps. A very handy unity tool.
Here is an example tutorial.
https://www.youtube.com/watch?v=DbzH-Z1fbU4
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 questionAsk a Question
731 491 924 answers to any question