AnimationState 动画状态
Inherits from TrackedReference
The AnimationState gives full control over animation blending.
AnimationState完全控制动画混合。
In most cases the Animation interface is sufficient and easier to use. Use the AnimationState if you need full control over the animation blending any playback process.
多数情况下,Animation已经满足使用。如果你需要完全控制动画混合,可以使用AnimationState。
The AnimationState interface allows you to modify speed, weight, time and layers while any animation is playing. You can also setup animation mixing and wrapMode.
播放动画时,AnimationState允许你修改速度,权值,时间和层。你也可以设置动画合成和wrapMode(循环模式)。
The Animation
Variables变量
- enabledEnables / disables the animation.
启动/禁止动画 - weightThe weight of animation
动画的权重。 - wrapModeWrapping mode of the animation.
动画的循环模式 - timeThe current time of the animation
动画当前时间 - normalizedTimeThe normalized time of the animation.
动画当前规范化时间 - speedThe playback speed of the animation. 1 is normal playback speed.
动画的播放速度。1为正常速度。 - normalizedSpeedThe normalized playback speed.
规范化播放速度。 - lengthThe length of the animation clip in seconds.
动画剪辑的长度,单位是秒。 - layerThe layer of the animation. When calculating the final blend weights, animations in higher layers will get their weights
动画层。计算混合权值时,较高层将优先获取权值。 - clipThe clip that is being played by this animation state.
此动画状态播放的剪辑。 - nameThe name of the animation
动画的名字 - blendModeWhich blend mode should be used?
使用哪种混合模式?
Functions函数
- AddMixingTransformAdds a transform which should be animated. This allows you to reduce the number of animations you have to create.
加入一个动画变换。这使你减少创建动画的工作量。 - RemoveMixingTransformRemoves a transform which should be animated.
删除应该是动画的变换。