在文本添加自适应组件,剩下的就是一句话:

Img_Bg.rectTransform.SetSizeWithCurrentAnchors(RectTransform.Axis.Vertical, Txt_Tips.preferredHeight);
最后修改:2023 年 08 月 09 日
如果觉得我的文章对你有用,请随意赞赏