1.添加Button(Script)
Using UnityEngine.UI; RectTransfrom reT = GetComponent<RectTransfrom>(); reT.sizeDelta = new Vector2(50, 50); //对应width,height
momo按钮事件侦听: http://www.xuanyusong.com/archives/3325
Unity Ugui EventListen (事件侦听)
原文:http://www.cnblogs.com/nnnnn/p/4568797.html