• Unity
  • Problem with scale skeleton with Unity runtime

Related Discussions
...

Problem :
Feet of kinght (spine example) looks weird when i apply scaling to skeleton.
I need help...!


Scale 1


Scale 2

public class SpineRuntimeQna : MonoBehaviour
{
    [SerializeField] private SkeletonGraphic graphic;
    [SerializeField] private float scalingFactor = 2f;

// Start is called before the first frame update
void Start()
{
    graphic.Initialize(false);

    graphic.Skeleton.ScaleX *= scalingFactor;
    graphic.Skeleton.ScaleY *= scalingFactor;

    graphic.Skeleton.SetToSetupPose();
    graphic.Skeleton.UpdateWorldTransform();
}
}

It looks kind of cool actually. 😉 The hero isn't the tallest guy, he needs his platform shoes!

It's been fixed in the reference implementation (spine-libgdx) and will be ported in the 3.8 branch to the other runtimes ASAP. Sorry for the trouble!

It has been fixed for the spine-unity runtime as well now.
A new 3.8 unitypackage is available for download here as usual:
Spine Unity Download

Thanks for reporting!