hengxin ha scrittounity3d api I know how to use
spine api
public void Mix (Skeleton skeleton, float lastTime, float time, bool loop, List<Event> events, float alpha) {
can not specify the bone
UnityEngine.AnimationState.AddMixingTransform
is not the same as
Spine.Animation.Mix
Spine.Animation.Mix and Spine.Animation.Apply only do Full animation, not using Hierarchy like AddMixingTransform.
But, if in the Spine editor you do not Keyframe "Hip, Body, Neck, Head" then Spine.Animation.Mix will only Mix (or Apply) to the parts you Keyframed.
List<Timeline> timelines = this.timelines;
for (int i = 0, n = timelines.Count; i < n; i++)
timelines[i].Apply(skeleton, lastTime, time, events, alpha);
This is all Mix does. It applies to All timelines in an animation (ie: "Wave" or "Run").