Hello Spine Team!
Unity 2022.3.29f1
Spine Editor 4.2.38 Professional
Spine-Unity Runtime: spine-unity 4.2.94
Video example of the issue:
Could you help me understand what's going wrong here? Trying to nicely blend between 2 run animations and the mesh breaks when I change an Alpha parameter of one of 2 entry tracks. Default mix transitions work correctly when changing one animation to another in the same track.
Test code example:
public class SpineBlendTest : MonoBehaviour
{
private SkeletonAnimation skeletonAnimation;
[SerializeField]
private float blendMix;
private TrackEntry runTrackEntry;
private TrackEntry gallupTrackEntry;
private void Start()
{
skeletonAnimation = GetComponent<SkeletonAnimation>();
runTrackEntry = skeletonAnimation.state.SetAnimation(0, "run", true);
gallupTrackEntry = skeletonAnimation.state.SetAnimation(1, "gallup", true);
gallupTrackEntry.MixBlend = MixBlend.Add;
}
void Update()
{
gallupTrackEntry.Alpha = blendMix;
}
}
Thank you in advance.
Best Regards,
Igor