• Unity
  • attached sprite pivot point ignoring due to 4.0-4.1 upgrade

  • Изменено
Related Discussions
...

Hi there!
Just have upgraded to 4.1, and now the Attach_sprite.cs script ignores the sprite pivot point and my skeleton joins with the center of sprite only.
Haven't you caught such trouble yet? :sucks:
Spine Gods please tell me how to repair it or to set the point manually.

Sorry for the troubles! Please note that the Attach_sprite.cs script is not provided by the spine-unity runtime. Could you please share the code of your script with us? Then we can have a look at it.

Of course, here it is. I was sure it was included in the 4.0 package because of the details in the header, but now I could not see it in the archive. Thanks in advance!

Thanks for providing the script. It is actually a slightly modified version of the SpriteAttacher.cs example component, with just some namespace changes, but no functional differences.

We were able to reproduce the differences between 4.0 and 4.1 in regards to ignoring the pivot. I have created an issue ticket here. We will let you know once we've figured out what's going wrong and have a fix to offer. Thanks for reporting!


We just pushed a bugfix to both 4.1 and 4.2-beta branches, new spine-unity unitypackages are available for download here as usual:
spine-unity Download

Please let us know if this fixes the issue on your end as well. Thanks again for reporting.

Thanks Harald!
I've made a temporary patch that displaces the png to the desired position, and I'll be in touch waiting 4.2

Rogue написал

I've made a temporary patch that displaces the png to the desired position, and I'll be in touch waiting 4.2

Perhaps I misunderstood what you meant, but there should be no necessity for a temporary patch. You should be able to either update the spine-unity 4.1 runtime in your project entirely as usual, or just update the single file AtlasUtilities.cs (where the only changes were made).

Sorry, it was my misunderstanding 🙂 maybe cause I'm a newborn at Spine, it'd surprized me a bit that the code was already updated. Thanks again!

Glad to hear we could positively surprise you. :nerd: