适用于挂载GridLayoutGroup / VerticalLayoutGroup / HorizontalLayoutGroup 的父物体布局刷新
LayoutRebuilder.ForceRebuildLayoutImmediate((你的父物体)as RectTransform);
LayoutGroup rectParent = m_TopRightButtonsRoot.parent.GetComponent<LayoutGroup>();
LayoutRebuilder.ForceRebuildLayoutImmediate(rectParent.transform as RectTransform);