unit 获取gameobject的宽度

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

 

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

导航