Problem with creating scrolling

Hello, I’m having problems creating the scrolling. I want to spawn a prefab but it has to be in the right place in the hierarchy because otherwise it won’t fit with the scrolling. can someone help me, thanks

You need to use GridLayoutComponent, which you define the cell size, and whenever your spawn a prefab UI, it will be set in correct position automatically

Hi SvenKing_437, maybe you can use Transform.SetSiblingIndex to change the GameObject’s order in the hierarchy.