Unity2D——動態修改動畫中的圖片尺寸

在製做動畫過程當中,有時會遇到圖片尺寸不統一,使得播放的動畫怪怪的,這時就須要咱們實時修改圖片尺寸。代碼以下:動畫 Image Image; void Update () { Image = this.transform.GetComponent<Image>(); this.transform.GetComponent<RectTransform>().size
相關文章
相關標籤/搜索