public void SendMessage(string newName, string firstFrame, string lastFrame, string speed)
{
animator.RemoveClip(newName);
AnimationClip cp = animation.GetClip("Take 001");
animation.AddClip(cp, newName, int.Parse(firstFrame), int.Parse(lastFrame));
foreach (AnimationState state in animator)
{
state.speed = float.Parse(speed);
}
animator.Play(newName);
}
unity3d flash版本模式实现动画播放任意帧停止
最新推荐文章于 2024-04-14 23:25:38 发布