- Home /
Question by
AngryBanana · Mar 28, 2013 at 04:39 AM ·
onguigui.box
GUILayout.Box resizing relative to the containing elements
Hello,
I'm passing text to the GUILayout.Box, but the problem is that some of the information is omitted due to the fact that text takes more space than the actual Box, I want to be able to pass text and make the Box capable of determining space it require for that particular text (my text is stored in an Array), would it be possible to provide me with help? (I'm very new to Unity, I would be grateful if you could provide me with an easy to understand approach)
Thanks in advance
Comment
Answer by AngryBanana · Mar 28, 2013 at 07:47 AM
Found it right after posting this, if you're interested to "Resize" the box, just pass the value, you don't need to include "Rect" as one of the arguments.