I'd like to get an animation name that's currently running. But I get an add animation name.
baseTrack = state.SetAnimation(0, "Anim_4_Play_2to3", false);
Debug.Log(baseTrack.AnimationEnd);
Debug.Log(baseTrack.Animation.Name);
baseTrack = state.AddAnimation(0, "Anim_4_Play_3", true, 0);
Debug.Log(baseTrack.Animation.Name)
Animation playback is normal.
setanimation start=> setanimation end => addaimation start;
However, animation.name changes as soon as you put addanimation into the code. 🙁
stateData.SetMix("Anim_4_Play_1", "Anim_4_Play_2", 1.0f);
stateData.SetMix("Anim_4_Play_2", "Anim_4_Play_2to3", 0.0f);
stateData.SetMix("Anim_4_Play_2to3", "Anim_4_Play_3", 0.0f);
The mix is also zero.🙁
Why!