Hi, 我用下面方法设置Timeline 整体播放速度。
public void setPlayableDirectorTimeScale(float timeScale)
{
if (!playableDirector.playableGraph.IsValid())
{
return;
}
var count = playableDirector.playableGraph.GetRootPlayableCount();
for (var i = 0; i < count; i++)
{
var playable = playableDirector.playableGraph.GetRootPlayable(i);
playable.SetSpeed(timeScale * this.timeScale);
}
}
设置后整体timeline速度变快了,SpineAnimationStateTrack显示速度提升了,但是实际SpineAnimation动画显示出来的播放速度 仍然维持正常速度播放。
After I call this function, Timeline has been sped up and the SpineAnimationState Track also sped up(I can see the changes in the timeline windows), but the character In scene still play with normal speed.
How can I fixed it?
出问题的版本,使用的Unity2020.3.0f1
Timeline插件是 3.8-2021-3-10
UnityTimeline 1.5.4
谢谢
Hi ,
Please help me!
Thanks so much!
🙂