unit 获取gameobject的宽度

transform.GetComponent<RectTransform>().sizeDelta.x

 

posted on 2020-06-11 11:31  zqiang0803  阅读(429)  评论(0)    收藏  举报

导航