Unity3D圣典3.3版本-中文版
文集大纲加载中……
本文档使用 MrDoc 发布
-
+
首页
AnimationEvent 动画事件
# 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](AnimationEvent.stringParameter.html) String parameter that is stored in the event and will be sent to the function. 字符串参数,保持在事件中并发送给函数 * [floatParameter](AnimationEvent.floatParameter.html) Float parameter that is stored in the event and will be sent to the function. 浮点型参数,保持在事件中并发送给函数 * [intParameter](AnimationEvent.intParameter.html) int parameter that is stored in the event and will be sent to the function. 整型参数, 保持在事件中并发送给函数 * [objectReferenceParameter](AnimationEvent.objectReferenceParameter.html) Object reference parameter that is stored in the event and will be sent to the function. 引用对象参数,保持在事件中并发送给函数 * [functionName](AnimationEvent.functionName.html) The name of the function that will be called. 欲调用的函数的名字 * [time](AnimationEvent.time.html) The time at which the event will be fired off. 引发该事件的时间 * [messageOptions](AnimationEvent.messageOptions.html) Function call options. 函数调用选项 * [animationState](AnimationEvent.animationState.html) The animation state that fired this event (Read Only). 引发事件时的函数状态(只读) ### Constructors**构造器** * [AnimationEvent](AnimationEvent.AnimationEvent.html) Creates a new animation event 创建新的动画事件
da
2022年5月13日 22:18
转发文档
收藏文档
上一篇
下一篇
手机扫码
复制链接
手机扫一扫转发分享
复制链接
关于 MrDoc
觅思文档MrDoc
是
州的先生
开发并开源的在线文档系统,其适合作为个人和小型团队的云笔记、文档和知识库管理工具。
如果觅思文档给你或你的团队带来了帮助,欢迎对作者进行一些打赏捐助,这将有力支持作者持续投入精力更新和维护觅思文档,感谢你的捐助!
>>>捐助鸣谢列表
微信
支付宝
QQ
PayPal
Markdown文件
分享
链接
类型
密码
更新密码