找回密碼
 注冊帳號

掃一掃,訪問微社區

animationevent 動畫事件

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

摘要: animationevent 動畫事件animationevent lets you call a script function similar to sendmessage as part of playing back an animation.animationevent類似于sendmessage讓你調用一個腳本函數,這個腳本是動畫播 ...

animationevent 動畫事件

animationevent lets you call a script function similar to sendmessage as part of playing back an animation.

animationevent類似于sendmessage讓你調用一個腳本函數,這個腳本是動畫播放的一部分

animation events support functions that take zero or one parameter. the parameter can be a float, a string, an object reference, or an animationevent.

動畫事件支持沒有或有一個參數的函數.參數可以是浮點型,字符串,引用對象或animationevent。

variables變量

stringparameter

string parameter that is stored in the event and will be sent to the function.

字符串參數,保持在事件中并發送給函數

floatparameter

float parameter that is stored in the event and will be sent to the function.

浮點型參數,保持在事件中并發送給函數

intparameter

int parameter that is stored in the event and will be sent to the function.

整型參數, 保持在事件中并發送給函數

objectreferenceparameter

object reference parameter that is stored in the event and will be sent to the function.

引用對象參數,保持在事件中并發送給函數

functionname

the name of the function that will be called.

欲調用的函數的名字

time

the time at which the event will be fired off.

引發該事件的時間

messageoptions

function call options.

函數調用選項

animationstate

the animation state that fired this event (read only).

引發事件時的函數狀態(只讀)

constructors構造器

animationevent

creates a new animation event

創建新的動畫事件

相關閱讀

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