首页 > 其他 > 详细

关于Animator控制动画的正播和倒播

时间:2015-09-06 18:09:54      阅读:250      评论:0      收藏:0      [点我收藏+]

官方给出这样的解释:

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,也不能实现倒播的效果。

技术分享

关于Animator控制动画的正播和倒播

原文:http://www.cnblogs.com/hont/p/4786615.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!