- Home /
Problem getting my background image to scale
Hey guys, I created a 1920x1080 image to use as my background in the game, didnt spend much time on it but would still like it to scale. I set the canvas scaler to have everything scale to the screen size, and I believe it all worked except for my image It would adjust the width, but not the height, so you can see my panels and stuff where my background is supposed to be. Any way around this? I dont care too much about how it looks atm, but for future reference, what is my background size supposed to be to fit all resolutions no problem?
have you tried using height for scale and not width? And does it need to be 1:1 scaled or can it be 'stretched' so to speak?)
Answer by StrawberryJellyfish · Jan 03, 2017 at 01:50 PM
https://docs.unity3d.com/Manual/HOWTO-UIMultiResolution.html
This link should explain everything to ya. Just look for this subtitle: Scaling with Screen Size
Thats what I read, and everything did scale with screen size, but only the background image didnt. It scaled width-wise but it looks like it got scaled to proportion, so the height isnt high enough to cover the whole background.
Answer by EmotionIce · Jan 03, 2017 at 01:50 PM
You need to set the anchor-points in all the corners!
I tried that also, but it wouldnt let me click and drag the anchors, so i set them using numbers on the inspector, and the same thing happened.
Your answer
Follow this Question
Related Questions
how do I create background image? 1 Answer
Background Image Distortion 2 Answers
how to make a scrollable panel? 2 Answers
Scaling for all Aspect Ratios for all Android mobile devices 1 Answer