Hi everyone I have a problem with my GUITextures not resizing when I change the resolution of the game. I have tried several different scrips and tricks to make it resize properly, but have had no luck with any of them. So any help you can give will be greatly appreciated.
asked Nov 01 '10 at 11:01 PM
Chris, I've had to use fractions when scripting, and that has seemed to do the trick. Here's an example:
GUI.DrawTexture (Rect (Screen.width / 60, Screen.height / 2.015, Screen.width / 30, Screen.height / 40), image, ScaleMode.StretchToFill, false);
You have a choice of using ScaleMode.StretchToFill or ScaleMode.ScaleToFit.
Hope that helps.
answered Jan 04 '11 at 05:23 PM