animationutility 动画工具

2014-12-31 06:46| 发布者: 杨炎| 查看: 2032| 评论: 0|原作者: 蛮牛|来自: yzc88亚洲城脚本manual

摘要: animationutility 动画工具editor utility functions for modifying animation clips编辑器工具函数,用于修改动画剪辑note: this is an editor class. to use it you have to place your script in assets/editor i ...

animationutility 动画工具

editor utility functions for modifying animation clips

编辑器工具函数,用于修改动画剪辑

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"引用。

class functions类函数

getanimationclips

returns the array of animationclips that are referenced in the animation component

返回动画组件中被引用的动画剪辑数组

setanimationclips

sets the array of animationclips to be referenced in the animation component

设置动画组件中被引用的动画剪辑数组

getanimatableobjects

returns a list of animatable objects attached to the game object (includes materials)

返回一个列表,包含着附加到游戏物体的动画物体(包含材质)

getanimatablepropertiesfor...

returns a list of animatable properties for a specific animated object that is attached to gameobject

返回一个列表,包含着附加到游戏物体上的特定动画的动画属性

getanimatableproperties

retrieves all animatable properties of all components / materials attached to the game object

检索所有附加在游戏物体的组件/材质的动画属性

getfloatvalue

retrieves the current float value by sampling a curve value on a specific game object

用在一个特定游戏物体上进行曲线值采样的方式检索当前浮点数值。

getallcurves

retrieves all curves from a specific animation clip.

从一个特定动画剪辑中检索所有曲线

geteditorcurve

unity automatic combines position curves, scale curves, rotation curves internally.

unity自动混合曲线坐标,缩放,旋转。

seteditorcurve

unity automatic combines position curves, scale curves, rotation curves internally.

unity自动混合曲线坐标,缩放,旋转。

getanimationevents

retrieves all animation events associated with the animation clip

检索动画剪辑相关的所有动画事件。

setanimationevents

replaces all animation events in the animation clip

替换动画剪辑中所有的动画事件

calculatetransformpath

calculates path from root transform to target transform.

计算从初始transform到目标transform的路径

startanimationmode

starts animation mode, as used by the animation editor.

开始动画模式,如使用动画编辑器。

stopanimationmode

stops animation mode, as used by the animation editor.

停止动画模式,如使用动画编辑器。

inanimationmode

returns true if the editor is currently in animation mode.

如果当前编辑器在动画模式则返回true

相关阅读

文章点评
相关文章