I hate to ask such a generic question but I’m really stuck and super hoping someone can help me along the way. Here is the situation:
I’m making the GUI for a mobile app, portrait mode. I’m using canvas scalers to scale my canvasses with a reference width of 1080. This means I effectively don’t know the height of my screen space.
What I want to create is a menu with a variable amount of items. The menu must be anchored to the bottom (with an offset margin) and grow upwards. So far I’ve been able to manage this using VerticalLayoutGroup and anchoring the rect transform to the bottom.
But my last requirement is that if the content would grow too big, a scrollbar would appear. The definition of the content being too big is: if it would extend the (unknown) screen height ( minus the offset margin of course). I hope the following image illustrates this much clearer:
I have an isolated unity project here: https://ufile.io/v31br