Rogue

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.
Rogue
  • Posts: 4

Harald

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.
User avatar
Harald

Harri
  • Posts: 4164

Rogue

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!
You do not have the required permissions to view the files attached to this post.
Rogue
  • Posts: 4

Harald

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.
User avatar
Harald

Harri
  • Posts: 4164

Rogue

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
  • Posts: 4

Harald

Rogue wrote: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).
User avatar
Harald

Harri
  • Posts: 4164

Rogue

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!
Rogue
  • Posts: 4

Harald

Glad to hear we could positively surprise you. :nerd:
User avatar
Harald

Harri
  • Posts: 4164


Return to Unity