Texturepacker: Pivot point in weird positions

When my designer sends me the spritesheets done with Texturepacker and I open them with the Sprite editor, i notice that the pivot point is in extremely weird positions. Way above the spritebox that it is attached to.

I told him to put the pivot point “Bottom center” instead “center”, and the pivot moved to positions not so exagerated, but still outside the spritebox.

I thought that someone (my designer or me) had something misconfigured, but then I opened the example spritesheet that came with Texturepacker, and I noticed that the pivot point was also in weird positions

As you see the pivot point is under the spritebox. And as I say, this is because the pivot point is set to “Bottom center”. If I set it to “Center”, it goes even weirder positions.

What is going on? Is something misconfigured here?

This is as it should be - no bug :wink:

TexturePacker has 2 crop modes in Unity - to remove transparency around the sprites which consumes memory and GPU.

Trim Keep Pos - removes the transparency but keeps the pivot point in the position where it was in the original sprite
Trim Flush Pos - removes the transparency and sets the pivot point relative to the cropped sprite
The default is “Trim Keep Pos” since this allows you playing the animations without jitter if all frames had the same size and were aligned before the crop. In Unity’s sprite editor it seems that the pivot point is off - but that’s perfectly ok.

See this image:

56250-copping.png

The gray area is the original sprite, the black rectangle the trimmed. As you see the red pivot point is outside the rectangle - but in the center of the original sprite.