//刷新content容器的尺寸 protected void RefreshContentSize() { Vector2 size = LayoutUtil.CalcLayoutSize(m_layoutParam, m_dataList.Count); size.x = Mathf.Max(size.x, m_contentSizeDefault.x); size.y = Mathf.Max(size.y, m_contentSizeDefault.y); m_contentSize = size; m_contentTrans.sizeDelta = size; }
//清空布局列表 protected void ClearLayoutItems() { LayoutUtil.RecyleLayoutItems(m_layoutItems); }
//初始化布列表 protected void GenLayoutItems(int len_) { LayoutUtil.CreateLayoutItems(m_layoutParam, len_, m_layoutItems); }