官方给出这样的解释:
ah you want to play the clip in rewind mode, sorry I misunderstood your question.
You can only set the Animator state speed in the editor. So if you need to play a clip both in forward or rewind mode you need to create two different state with the same clip and set state‘s speed to 1 and -1.
“你只能设置动画状态的播放速度在编辑器下,如果需要控制正播和倒播放的模式,你需要创建两个不同的状态,把一样的剪辑放上去设置时间为1和-1”
我后来又测了一下提供的Animator.speed接口,事实上值最小只能为0,也不能实现倒播的效果。
时间: 2024-10-14 21:16:40