x


Proportional text screen

Hello, this script works perfectly, the only problem is the lack of proportionality of the text in the screen, I would like GUI.Box, GUI.Label and icon texture2D decreases along with the screen. Help please

The script is this:

var close = false;

var textFieldString = "write here";

var icon : Texture2D;

var style : GUIStyle;

function SetTheGUI () {

close = true;

}

function UnSetGUI () {

close = false;

}

function OnGUI () {

if(close) {



GUI.Box (Rect (10,10,300,800), icon);

GUI.Label (Rect(25, 180, 250, 750),textFieldString, style);

}

}

more ▼

asked Jan 19 '12 at 02:31 AM

richard.falcos gravatar image

richard.falcos
16 6 12 17

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

0 answers: sort newest
Be the first one to answer this question
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:

x58

asked: Jan 19 '12 at 02:31 AM

Seen: 295 times

Last Updated: Jan 19 '12 at 02:31 AM