Scroll Through Buttons

I’m designing an Inventory for an RPG but am having trouble with scrolling through items:

In this image, there are more slots hidden by Rect Mask
Each slot is controlled using the UI button component to allow the player to navigate using the Input System. The slots are parented to a game object and sorted using vertical grid layout.
My goal is that when the player reaches the last visible slot, the grid will increment downwards. I tried using Scroll Rect but couldn’t get it to work. How do I achieve this goal.

I’m not sure this is what you’re looking for, but I’ve set up a ScrollView with the following configuration and it works for me.

If you’re trying to resize the ScrollView each time you add a new slot, just increase the height from the ScrollView object accordingly.