找回密碼
 注冊帳號

掃一掃,訪問微社區

animationutility 動畫工具

2014-12-31 06:46| 發布者: 楊炎| 查看: 2190| 評論: 0|原作者: 蠻牛|來自: unity3d腳本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

相關閱讀

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