找回密码
 注册帐号

扫一扫,访问微社区

animationclipcurvedata 动画剪辑曲线数据

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

摘要: animationclipcurvedata 动画剪辑曲线数据an animationclipcurvedata object contains all the information needed to identify a specific curve in an animationclip. the curve animates a specific property of ...

animationclipcurvedata 动画剪辑曲线数据

an animationclipcurvedata object contains all the information needed to identify a specific curve in an animationclip. the curve animates a specific property of a component / material attached to a game object / animated bone.

一个animationclipcurvedata对象包含所有的信息需要明确一个明确的animationclip曲线。曲线动画一个组件的特定属性 /游戏对象的附加材质 /骨骼动画。

note: this is an editor class. to use it you have to place your script in assets/editor inside your project folder. editor classes are in the unityeditor namespace so for c# scripts you need to add "using unityeditor;" at the beginning of the script.

注意:这是一个编辑器类,如果想使用它你需要把它放到工程目录下的assets/editor文件夹下。编辑器类在unityeditor命名空间下。所以当使用c#脚本时,你需要在脚本前面加上 "using unityeditor"引用。

参见:animationutility,objectnames

variables变量

path

the path of the game object / bone being animated.

带有动画的游戏对象/骨骼的运动轨迹

type

the type of the component / material being animated.

带有动画的组件/材质的类型

propertyname

the name of the property being animated.

带有动画的属性名称

curve

the actual animation curve.

当前的动画曲线

target

the component / material being animated.

带有动画的组件/材质

相关阅读

文章点评
相关文章