找回密碼
 注冊帳號

掃一掃,訪問微社區

animationstate 動畫狀態

2014-12-31 05:26| 發布者: 楊炎| 查看: 2888| 評論: 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.

刪除應該是動畫的變換。

相關閱讀

文章點評
相關文章
女校游泳队彩金