• 中文
  • Playable.SetSpeed Invalid to SpineAnimation in Timeline

Related Discussions
...

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!
🙂

感谢您的举报,对于给您带来的麻烦深表歉意! 我们可以重现该问题。 我在这里创建了一个问题凭单,您可以在其中订阅任何更新以接收通知:
https://github.com/EsotericSoftware/spine-runtimes/issues/1866
问题解决后,我们会通知您。


Thanks for reporting and sorry for the troubles! We could reproduce the issue. I have created an issue ticket here where you can subscribe to receive notifications upon any updates:
https://github.com/EsotericSoftware/spine-runtimes/issues/1866
We will let you know once the issue has been fixed.

일 년 후

Hi, it's been a long time, when do you plan to fix this bug?
Thank you so much for your support!

Harald wrote

感谢您的举报,对于给您带来的麻烦深表歉意! 我们可以重现该问题。 我在这里创建了一个问题凭单,您可以在其中订阅任何更新以接收通知:
https://github.com/EsotericSoftware/spine-runtimes/issues/1866
问题解决后,我们会通知您。


Thanks for reporting and sorry for the troubles! We could reproduce the issue. I have created an issue ticket here where you can subscribe to receive notifications upon any updates:
https://github.com/EsotericSoftware/spine-runtimes/issues/1866
We will let you know once the issue has been fixed.

Sorry for the long wait, this ticket must have slipped through! We will have a look at it right away.


We have just fixed this issue on the 4.1-beta branch. Unfortunately we cannot integrate the changes on the 4.0 or 3.8 branches, since they are too risky to break existing projects.

You could however integrate the changes of this commit in your Timeline installation:
https://github.com/EsotericSoftware/spine-runtimes/commit/3b0c272b01a28607cb3e7c55ec1e868d0dd1183a
You need to apply the changes to the file <spine timeline package>/Runtime/SpineAnimationState/SpineAnimationStateMixerBehaviour.cs.
If you need help with applying this patch, please let me know.

A new 4.1-beta Timeline package is available for download here as usual:
Spine Unity Download

Sorry again for the long delay!