摘要: Unity RectTransform中使用stretch模式时代码动态控制Left、Top、Right、Bottom 对于屏幕进行适应的代码: var rect = panelObj.AddComponent<RectTransform>(); rect.anchorMin = Vector2.z 阅读全文
posted @ 2023-10-16 16:18 威少小二orz 阅读(381) 评论(0) 推荐(0) 编辑