x


Blink guiText and then disappear and reappear

I would like to ask how do I make some guiText to blink awhile and then disappear. It will reappear about like 5seconds later.

var txt00 : Transform[];
var txt0  : Transform[];
more ▼

asked Jan 04 '12 at 07:15 PM

missypooh gravatar image

missypooh
77 31 48 50

hello, sorry about not elaborating more. the code mini-snippet i post here is intend to say that i have an array of text, so i want to randomly choose one guiText to blink and disappear and reappear. Of course i do read up around before posting this question. Just that it doesnt really work as what i want so decide to post this question. :)

Jan 05 '12 at 01:18 AM missypooh
(comments are locked)
10|3000 characters needed characters left

2 answers: sort voted first

Try using unity's built in Animation tool to make the GUITEXT blink??

more ▼

answered Jan 04 '12 at 09:31 PM

benjimazza gravatar image

benjimazza
102 23 34 37

Unity's built in animation tool to make it blink? Sorry i don't really get you, could you please elaborate more?

Jan 05 '12 at 01:19 AM missypooh
(comments are locked)
10|3000 characters needed characters left
/* Flashing button example */

function OnGUI () {
    if (Time.time % 5 < 1) {
       if (GUI.Button (Rect (10,10,200,20), "Meet the flashing button")) {
         print ("You clicked me!");
       }
    }
}
more ▼

answered Jan 22 '12 at 10:45 PM

joeybbb gravatar image

joeybbb
1 2 4 4

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

x3689
x553
x64

asked: Jan 04 '12 at 07:15 PM

Seen: 1085 times

Last Updated: Jan 22 '12 at 10:45 PM