Unity Grid Question

Hello, I have a question regarding the Unity grid. I’m taking the Complete C# Unity Game Developer 2D Online Course, and I’m currently at the part of the Delivery Driver game where assets are imported. In the ‘Pixels per Unit’ field, I entered the number of pixels in the X-axis of the car image, expecting it to fit within a single grid unit in Unity. However, it is being displayed as two units. I’m not sure if I’m misunderstanding something, but shouldn’t it be just one unit if I enter the exact number of pixels in the X-axis in the ‘Pixels per Unit’ field?

Hi Carlos,

Welcome to our community! :slight_smile:

Let’s say you have a sprite with a width of 123 pixels. If you set the Pixels Per Unit (PPU) to 123, the sprite will be 1 World Unit (WU) wide in the scene.

Of course, the scale value in the Transform component of the game object in the Inspector must be set to (1, 1, 1). If it is, for example (2, 1, 1), the sprite will be 2 WU wide.

Did this help?

See also:

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms