找回密码
 注册帐号

扫一扫,访问微社区

animationstate 动画状态

2014-12-31 05:26| 发布者: 杨炎| 查看: 2931| 评论: 0|原作者: 蛮牛|来自: unity3d脚本manual

摘要: animationstate 动画状态inherits from trackedreferencethe animationstate gives full control over animation blending.animationstate完全控制动画混合。in most cases theanimationinterface is sufficient and ...

animationstate 动画状态

inherits from trackedreference

the animationstate gives full control over animation blending.

animationstate完全控制动画混合。

in most cases theanimationinterface 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变量

enabled

enables / disables the animation.

启动/禁止动画

weight

the weight of animation

动画的权重。

wrapmode

wrapping mode of the animation.

动画的循环模式

time

the current time of the animation

动画当前时间

normalizedtime

the normalized time of the animation.

动画当前规范化时间

speed

the playback speed of the animation. 1 is normal playback speed.

动画的播放速度。1为正常速度。

normalizedspeed

the normalized playback speed.

规范化播放速度。

length

the length of the animation clip in seconds.

动画剪辑的长度,单位是秒。

layer

the layer of the animation. when calculating the final blend weights, animations in higher layers will get their weights

动画层。计算混合权值时,较高层将优先获取权值。

clip

the clip that is being played by this animation state.

此动画状态播放的剪辑。

name

the name of the animation

动画的名字

blendmode

which blend mode should be used?

使用哪种混合模式?

functions函数

addmixingtransform

adds a transform which should be animated. this allows you to reduce the number of animations you have to create.

加入一个动画变换。这使你减少创建动画的工作量。

removemixingtransform

removes a transform which should be animated.

删除应该是动画的变换。

相关阅读

文章点评
相关文章