2021-08-17:cocos creator 如何控制 spine 动画的进度

// 传入spine与进度比例(注意初始要把spine的TimeScale设置为0)
updateSpine(spine: sp.Skeleton,rate: number) { const track = spine.getCurrent(0); const timeEnd = track.animationEnd; const current = timeEnd * rate; track.animationStart = current; spine.setToSetupPose(); }

 

posted @ 2021-08-17 18:31  会蛇皮  阅读(947)  评论(0)    收藏  举报