Level Selection Screen

I created a level selection screen for my game, but I’m not sure if what I did is considered a good approach. Here is what I did:

  • I created a “Panel” with a “Scroll Rect” component.
  • I created an empty object and made it a child of that “Panel”
  • Added “Vertical Layout” component to that empty game object (I want to scroll vertically)
  • Created buttons and made them children of that empty game object which is a child of the “Panel” and also occupies the “Content” property in the “Scroll Rect” component

So far it works as expected but with one problem:

I want the screen to automatically scroll up to the latest level the player unlocks.

Hello,

You just need to set the verticalNormalizedPosition to 0 or 1 depending on your scrollrect orientation setup.
If that does not work maybe set the value through your vertical bar Scrollbar.value