Unity_NGUI基础控件_自定义Button_041
来源:互联网 发布:淘宝店铺各种图片尺寸 编辑:程序博客网 时间:2024/06/06 03:37
//找到button组件添加点击事件 EventDelegate.Add(GetComponent<UIButton>().onClick, DeleClickMethod); //UIEventListener全局事件系统添加点击事件,有参数 UIEventListener.Get(gameObject).onClick = ListenerClickMethod;//按钮自带的点击方法void OnClick(){ Debug.Log("aaa");}void DeleClickMethod(){ Debug.Log("111");}void ListenerClickMethod(GameObject go){ Debug.Log("222"+ go.name);}
阅读全文
0 0
- Unity_NGUI基础控件_自定义Button_041
- Unity_NGUI基础控件_ScrollView_042
- Unity_NGUI基础控件_Tween_043
- Unity_NGUI基础控件_PlayTween_044
- Unity_NGUI基础控件_NGUI事件回调_045
- Android自定义控件_基础(五)
- Unity_NGUI基础01_039
- Unity_NGUI基础02_040
- unity_NGUI系统学习(十三)_使用脚本监听控件的值修改,取得控件的值
- unity_NGUI系统学习(十六)_给控件对象添加可拖拽的功能和可调节大小的功能
- 自定义控件_画圆
- 自定义控件_自定义日历
- 自定义控件_属性介绍
- 自定义控件基础
- android自定义控件基础
- 自定义控件基础 onSaveInstanceState()
- android自定义控件基础
- Android自定义控件基础
- 基于Python的开源人脸识别库:离线识别率高达99.38%
- 写python最好禁用tab及sublime显示制表符
- springboot集成mybatis xml方式
- 前台页面标签含义
- apache設置
- Unity_NGUI基础控件_自定义Button_041
- 【Codeforces】832D. Misha, Grisha and Underground
- TensorFlow插曲之 tf.app.run()
- Python3.x字符串函数详解
- HDU
- python002 Python3 基础语法
- 代码规范(不定时更新)
- 十字架
- Ajax的Url