Real vs Unity sprite dimentions discrepancy

Hi all,

i got a very weird problem and hope someone knows the answer.

I have imported my sprites into Unity 4.7.0 with the following settings:
2738695--196031--sprite_import_settings.png

Then i check the dimentions of it in Unity and those don’t fit the real dimentions of the image. It brings a lot of very annoying problems.

So far, i have checked the following dimentions of the sprites (Real vs Unity):

258x185 vs 260x188
254x204 vs 256x204
325x255 vs 328x256
259x183 vs 260x184

What could cause this issue? Is there any simple and quick way to fix it?

Thanks a lot!

Best regards,
Alexander

If you set the Texture Type to “Advanced” you will see an “Extrude Edges” slider. This extends the sprite by a number of pixels as a buffer region for filtering and packing I think. That is likely the difference you’re seeing.

Thanks a lot for the reply jeffreyschoch. Finally, i got a chance to test your suggestion. Unfortunately this workaround didn’t help. After changing the sprites import settings to Extrude Edges = 0, the resolution values don’t change. The problem still persists.

Isn’t it possible that the compression resizes the picture to fit into its algorithm? I noticed almost all changes are from odd to even numbers. Check if it changes when set to Truecolor. Also these are some weird texture sizes.

1 Like

Yah the compression may force multiples of 4x4 pixel groups.

I agree, you may want to keep your sprites in more uniform power-of-two resolutions, and then slice them in the Sprite Editor.

1 Like