I am currently creating a mobile friendly GUI and I have problems with my scrollbar. So I am trying to make the scrollbar responsive, so it scales with the size of the screen and I also would like to make it stick to the right side of the screen. Actually pretty much like every scrollbar.
For scaling I used the vertical stretching anchor preset - works fine, but if I scale the screen horizontally the scrollbar does not stick to the right side of the screen.
If I use the anchor preset for setting the position on the right, the scrollbar sticks to the right side as I want it to do, but if I scale the screen vertically the scrollbar does not stretch anymore.
I have already tried to make a panel with one anchor preset, the scrollbar with another and making the panel to a parent of the scrollbar, but this didn’t work for me either.
Is there a way to use two anchor presets at the same time for one single RectTransform?
What am I doing wrong?
I think there is a pretty obvious and simple solution, so thanks in advance for helping.