As title says, I’m trying to change the size and position of the cells inside the scroll rect., I have it set up with content or container having a grid layout attached, constraint set to fixed column count. The first cell is an image with text child. I’m creating a copy of this in script and adding it to the scrollrect but when I try changing the size with
newitem.GetComponent<RectTransform>().sizeDelta = new Vector2 (300,300);
it still appears with the size set in the scrolling area.
Likewise with position, it sticks to scrollrect setting.
I have a content size fitter on the child of the item.
Yep GridLayoutGroup changes the cellsize but for all of the cells. I’m trying to change the cells independently as I add them for different sized items but still have them in the grid and scrollable.