BZ易风

导航

 

2021年6月25日

摘要: ContentSizeFitter使用Preferred Size来设置RectTransform不能立即生效,此时获取的sizeDelta为Vector2(0,0),需要使用UnityEngine.UI下的 LayoutRebuilder.ForceRebuildLayoutImmediate获取 阅读全文
posted @ 2021-06-25 10:47 BZ易风 阅读(877) 评论(0) 推荐(0) 编辑