Question by
jpric2024 · Aug 20, 2020 at 12:51 AM ·
grid based game
How can I set the exact size of an object in pixels?
So I was reading an article about Hollow Knight, and it stated that they gridded the world in 64x64 black boxes. My question, since I haven't been able to find an answer, is how can I replicate that? Or rather, what is Unity's units to pixels ratio?
Comment
Best Answer
Answer by xxmariofer · Aug 20, 2020 at 06:22 AM
unity is not based on a grid system you will have to implement that system by yourself, the pixels to units ratio is not a global parameter, but for each sprite there is a "pixel per unit" in the inspector that you can edit
Your answer
Follow this Question
Related Questions
Cannot select gameObjects 0 Answers
[Unity2D] Collision bug 0 Answers
Find script inherits from a specific base class? 1 Answer
How can i make a script that generates like a "ghost" tile map 1 Answer