x


GUITexture resolution resize problem

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.

Thank you.

more ▼

asked Nov 01 '10 at 11:01 PM

Chris 5 gravatar image

Chris 5
47 4 4 7

Hey dude you know wat i thought i was the only one lol. I am having the same problem and i hope some one can help :)

Nov 02 '10 at 01:22 AM MC HALO
(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

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.

more ▼

answered Jan 04 '11 at 05:23 PM

TinfoilFez gravatar image

TinfoilFez
16 3 3 3

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x478
x382

asked: Nov 01 '10 at 11:01 PM

Seen: 2313 times

Last Updated: Nov 01 '10 at 11:01 PM