This is probably a stupid newbie question, but how do I get my texture to stop compressing? I have a basic image that’s 650 x 110 pixels, and I’d like to place it in the bottom center of the screen. However, when I do, I get a box (or blank space, if I draw Texture instead of draw Box) that’s the correct size, with the image on top of it, smushed in the middle of the box and a lot of blank space on every side of it. How do I get the image to fill the whole box, rather than compressing in the middle?
Here’s my code:
// GUI.Box (Rect ((Screen.width/2)-325, Screen.height-110, 650, 110), GUIContent (backdrop));
GUI.DrawTexture(new Rect((Screen.width/2)-325, Screen.height-110, 6500, 110), backdrop, ScaleMode.ScaleToFit, true, 0f);
(“backdrop” is the name of the Texture2D variable I have at the top that I’ve dragged my image into.)