x


Help!!! Need to Complete GUI error!!!

Hi, Can ne body plz tell me a code in java script to reflect all my guitext lines to be displayed in my GUI area?? Like in to accept all incoming text from the game and show it like a onboard dislplay for instance like a PDA??

Thanks in Advance!

P.S:- i am a newb and i love to learn more!! :)

more ▼

asked Mar 12 '10 at 01:10 PM

Rakesh Jha gravatar image

Rakesh Jha
61 7 9 14

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

1 answer: sort voted first

Here is a simple example how can you use the GUILayout and display a text.

function OnGUI() {
    GUILayout.BeginArea(Rect(128, 128, 256, 256));
    GUILayout.Box("Foo");
    GUILayout.Label("Bar");
    GUILayout.TextArea("Hello, world!");
    if (GUILayout.Button("Awesome")) {
        //Do something awesome!
    }
    GUILayout.EndArea();
}

If you love learning more, just go through GUI Scripting Guide . It will help you a lot.

more ▼

answered Mar 12 '10 at 01:22 PM

Lipis gravatar image

Lipis
2.3k 10 22 48

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

x3695
x145
x13

asked: Mar 12 '10 at 01:10 PM

Seen: 424 times

Last Updated: Mar 12 '10 at 01:10 PM