UGUI的RectTransform脚本控制。

1.改变RectTransform的topweb GetComponent().offsetMax = new Vector2(GetComponent().offsetMax.x, top);svg 2.改变RectTransform的bottom GetComponent().offsetMin = new Vector2(GetComponent().offsetMin.x, bottom)
相关文章
相关标签/搜索