用户工具

站点工具


侧边栏



Unity3D中文文档

script:unityengine:classes:animationstate:animationstate

AnimationState 动画状态

Description 描述

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.

在大多数情况下动画界面是足够易于使用。如果您需要完全控制动画融合的任何过程,请使用 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 参数

blendModeWhich blend mode should be used?
使用哪种混合模式?
clipThe clip that is being played by this animation state.
此动画状态正在播放的剪辑。
enabledEnables / disables the animation.
启用/禁用动画
lengthThe length of the animation clip in seconds.
动画剪辑的长度以秒为单位
nameThe name of the animation.
动画的名字
normalizedSpeedThe normalized playback speed.
规范化播放速度
normalizedTimeThe normalized time of the animation.
规范化动画时间
speedThe playback speed of the animation. 1 is normal playback speed.
加快动画的播放速度,1 为正常播放速度。
timeThe current time of the animation.
当前动画时间
weightThe weight of animation.
动画权重
wrapModeWrapping mode of the animation.
动画的循环模式

Public Functions 公有成员函数

AddMixingTransformAdds a transform which should be animated. This allows you to reduce the number of animations you have to create.
添加一个动画的Transform。这使你减少创建动画必须的数量。
RemoveMixingTransformRemoves a transform which should be animated.
移除一个动画的Transform。
script/unityengine/classes/animationstate/animationstate.txt · 最后更改: 2016/08/02 05:26 (外部编辑)