Unity Ugui EventListen (事件侦听)

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

posted @ 2015-06-11 12:49  Cvjar  阅读(463)  评论(0)    收藏  举报