WeAthFoLD / MetaSprite

A fast, self-contained, highly customizable Aseprite-to-Unity importer.
MIT License
197 stars 31 forks source link

pivot not set to one specified in config file #7

Closed gotenxds closed 5 years ago

gotenxds commented 5 years ago

Hi, when generating the atlas each frame seems to have some random number for the x and y values of the pivot, I tried setting bottom center and custom (0.5, 0) but I still get different numbers for each frame.

image

image

WeAthFoLD commented 5 years ago

The number is correct. Because each frame has different regions where the pixels are actually drawn, the crop regions are different, resulting different calculated pivots.

If you play back the animation in a gameobject, you will find that behaviour is correct.

BTW you can uncheck 'Dense Pack' in import settings to make each sprite occupy full region.