unity用代码移动UGUI里的物件坐标
2018-07-03 本文已影响30人
suxsho_枫2
using UnityEngine.UI;
public GameObject 组件名字
组件名字.GetComponent<RectTransform>().anchoredPosition = new Vector2(-9999, 9999);
using UnityEngine.UI;
public GameObject 组件名字
组件名字.GetComponent<RectTransform>().anchoredPosition = new Vector2(-9999, 9999);