loodakrawa / SpriterDotNet

A pure C# Spriter implementation
zlib License
220 stars 75 forks source link

Pushing a Character Map does not Update Pivot Points or Transform #77

Open Xestrada opened 7 years ago

Xestrada commented 7 years ago

When pushing a character Map in Unity it seems pivot points from Spriter are not applied, so if I am replacing a Sprite with another one that has a different pivot point then the plugin will simply replace the sprite without changing it's position. Is there any way to fix this or will I have to draw character maps that have exact pivot points.

Original Sprite Pivot Point screenshot 44

Replacement Sprite and Pivot Point screenshot 45

How it looks in spriter screenshot 46

How it appears in Unity screenshot 47

loodakrawa commented 7 years ago

Hey, this looks like a bug. Thanks for reporting.

I think I know what the issue is but just to confirm - do you set any pivot points in animations themselves or just directly on sprites?

Xestrada commented 7 years ago

I set the new pivot points on the sprites themselves in Spriter.