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
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
转载于:https://www.cnblogs.com/nnnnn/p/4568797.html