I have a clip panel and it has a child uigrid,the grid has no any child item,when I click a button,the grid will be add all the child item.for center item,I get the UICenterOnChild component and call the function UICenterOnChild.Recenter(),but the first item is not on center position.If drag the grid,it works well,after move every item will be right on the center position.
my goal is:after add all the items,the first item will on the center position.
I know I must have made some mistakes and I have work it for a few days,please help me