untiy AnimationEvent添加返回参数
来源:互联网 发布:数据库系统实现英文 编辑:程序博客网 时间:2024/05/14 07:48
using UnityEngine;using System.Collections; public class Try : MonoBehaviour { public class Action : ScriptableObject { public Transform Att; public Transform Def; } // Use this for initialization void Start () { Action act = new Action(); act.Att = this.transform; act.Def = this.transform; AnimationEvent evt = new AnimationEvent(); evt.time = 0; evt.functionName = "Test"; evt.objectReferenceParameter = act as Object; animation.GetClip("ani").AddEvent(evt); Debug.Log(act.Att.gameObject.name); } public void Test(Action obj) { Action act = obj as Action; Debug.Log(act.Att.gameObject.name); }}
貌似参数传多少个,类型为int float object都可以
http://blog.csdn.net/damenhanter/article/details/52561673
1 0
- untiy AnimationEvent添加返回参数
- unity 代码添加AnimationEvent
- AnimationEvent
- unity中为mecanim动画动态添加AnimationEvent
- Untiy
- AnimationEvent事件问题
- Lua监听AnimationEvent
- Unity 动画系统-AnimationEvent
- laravel 4 after filter 添加返回参数到原来的返回值中
- untiy 优化
- ActionBar 添加返回按钮
- unloadmode 参数返回值
- 动态语句返回参数
- 返回参数的值
- 返回值与参数
- 带返回参数函数
- GetLastError()返回参数
- OUPUT参数返回值
- 如何快速定位TempDB产生问题
- 编译CImg时,Undefined symbols for architecture x86_64的问题解决
- 驱动设计硬件基础
- Android-JNI使用
- eclipse项目中的jar中的文件直接替换
- untiy AnimationEvent添加返回参数
- Android多语言切换
- Android悬浮窗使用及窗口设置相关
- SVN提交后自动通知到钉钉群
- 煤的顯微組分
- safety case读书笔记1
- Java研发方向如何准备BAT技术面试答案(下)
- 解析 Nginx 负载均衡
- perl 引用