找回密碼
 注冊帳號

掃一掃,訪問微社區

animationcurve.addkey 添加鍵

2014-12-31 03:38| 發布者: 楊炎| 查看: 2560| 評論: 0|原作者: 蠻牛|來自: unity3d腳本manual

摘要: animationcurve.addkey 添加鍵functionaddkey(time: float,value: float) : intdescription描述add a new key to the curve.在曲線中添加一個新鍵.smooth tangents are automatically computed for the key. returns ...

animationcurve.addkey 添加鍵

functionaddkey(time: float,value: float) : int

description描述

add a new key to the curve.

曲線中添加一個新鍵.

smooth tangents are automatically computed for the key. returns the index of the added key. if no key could be added because there is already another keyframe at the same time -1 will be returned.

自動為該鍵計算平滑切線.返回該鍵的索引,如果此時已存在另一個關鍵幀,則不能添加鍵,并返回-1.

另見:keys變量.

o functionaddkey(key: keyframe ) : int

description描述

add a new key to the curve.

添加新鍵到曲線.

returns the index of the added key. if no key could be added because there is already another keyframe at the same time -1 will be returned.

返回該鍵的索引,如果此時已存在另一個關鍵幀,則不能添加鍵,并返回-1.

see also:keysvariable,keyframestruct.

相關閱讀

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