How do I strech my background while also setting a pivot?

I am currently trying out mobile game development, but I’ve noticed that I need to set anchors, because of different screen sizes. I want the background to be at the bottom, not visible by the player, but I also want to stretch it relative to the screen size. Any suggestions?

Hi,

If you want to stretch it just set X anchors to 0 and 1, If you want it to stay at the bottom leave Y anchor at 0. Also you can set pivot Y to 1, this will ensure that even if you increase height of the rect, it will be always under the screen.

Hey,
Now it snaps it to the bottom and stretches properly on the X-axis, but doesn’t stretch properly on the Y-axis.