6
\$\begingroup\$

I try to make a game in Unity 2d. But when I drop the image in Unity the image size increases 3 or 4 times. Can I fix that or is this normal?

\$\endgroup\$

1 Answer 1

5
\$\begingroup\$

The default sprite size in Unity is 100 pixels per unit.

This means that if you have a sprite that is 100 pixels wide, it would occupy "1" Unity unit. If you moved this sprite to the left by 1 unit, it would shift 100 pixels to the left.

You can change this value by selecting your sprite, and changing its "Pixels per Unit" property.

I typically set my sprites to their native size, for example, if a sprite is 64x64, I set it to 64 pixels per units.

\$\endgroup\$
2
  • \$\begingroup\$ Ok! So why the images deteriorated after when i compress them? \$\endgroup\$
    – Dr.iRi
    Jun 30, 2015 at 16:14
  • \$\begingroup\$ @Dr.iRi Unity also runs compression algorithms on the images, to try to reduce their size. You can set your images to TrueColor, which is possibly what you are referring to. There is also anti-aliasing that can cause issues depending on the graphic. You can turn off anti-aliasing by setting your sprite's Filter Mode to Point Clamp. \$\endgroup\$
    – jgallant
    Jun 30, 2015 at 16:16

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .