x


Wrong Texture Size

I have a GUI object which has the Rect_Box(0,0, 400, 208); and i am applying a texture of size 400,208 to it , but the object still appears bigger than the texture:

GUI.Box(Rect_Box, Texture_Box);

i have tried both Texture and Texture2D and the result is the same!

more ▼

asked Sep 27 '10 at 01:03 PM

John 13 gravatar image

John 13
63 14 15 19

(comments are locked)
10|3000 characters needed characters left

1 answer: sort oldest

GUI.Box uses padding so that it displays the box around your image

If you just want to display an image, use GUI.DrawTexture(Rect_Box, Texture_Box);

more ▼

answered Sep 27 '10 at 01:57 PM

Mike 3 gravatar image

Mike 3
30.5k 10 65 252

(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:

x2193
x286

asked: Sep 27 '10 at 01:03 PM

Seen: 1381 times

Last Updated: Sep 27 '10 at 01:03 PM