彬哥和你一起学习U3D开发(3)--按钮控件使用
一、 C#脚本 代码如下:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class binge : MonoBehaviour {
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
}
public void Click_test()
{
Debug.Log("点击测试");
}
}
复制代码
二、按钮控件创建

image
</ignore_js_op>
三、脚本挂接到空间上

image
</ignore_js_op>
四、 脚本绑定事件

image
</ignore_js_op>
五、 点击测试

image
</ignore_js_op>
六、 源码
[#### 本帖隐藏的内容
https://github.com/Golangltd/codeclass](https://github.com/Golangltd/codeclass)