x


How to specify height and width in my GUILayout.Box?

I am having a button where in if I click it opens up a GUI Box.. Here it takes the whole screen but I want that to restrict that to some specific dimensions. How will I do that?

How will I specify the screen width and height?

Is there any better way to do this?

more ▼

asked Mar 10 '12 at 09:47 AM

vivek gravatar image

vivek
1 5 5 6

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

1 answer: sort voted first

Check these out: GUILayout.Width and GUILayout.Height. I'm not very familiar with the GUILayout class, but I think those should work.

more ▼

answered Mar 10 '12 at 02:56 PM

Kleptomaniac gravatar image

Kleptomaniac
2.5k 6 12 21

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

x144

asked: Mar 10 '12 at 09:47 AM

Seen: 576 times

Last Updated: Mar 10 '12 at 02:56 PM