x


FadeIn/FadeOut GUI Menu and Text

This is what I need in sequential order:

  1. First a GUI Text fades in and after a couple seconds fades out.

  2. After the GUI Text fades out delay the next action for a few seconds.

  3. A GUI image fades in. After the image fades in delay the final action for a couple seconds.

  4. The GUI Menu (consisted of Buttons) fades in and is able to be clicked once the fade process is complete.

I'm not exactly sure how to go about doing this. The part that mostly confuses me is the fading part. I've tried looking at other scripts and examples, but none of them seem to be working.

more ▼

asked Jan 09 '11 at 06:18 PM

logging_out gravatar image

logging_out
80 12 13 21

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

1 answer: sort voted first

This works perfectly for fading GUIText and GUITexture objects. For OnGUI functions, however, you'd have to handle that quite differently.

more ▼

answered Jan 09 '11 at 07:04 PM

Eric5h5 gravatar image

Eric5h5
80.2k 41 132 519

I've already looked at that exact script and tried it. Nothing seems to be working.

Jan 09 '11 at 09:04 PM logging_out

It works fine. Read the usage docs (and do what they say to do) and look at the examples.

Jan 09 '11 at 09:44 PM Eric5h5

Well I've done exactly as it says and I keep getting this: "'use' is not a member of 'Fade'" I don't get it.

Jan 11 '11 at 02:50 AM logging_out

Then you have another class called Fade...you can only have one, unless you take extra steps to distinguish between them.

Jan 11 '11 at 03:07 AM Eric5h5

Sorry it took me so long to get back to you. Okay so I finally got rid of the errors. I used the script on the bottom of the page but when I played my scene nothing happened. What am I doing wrong?

Mar 03 '11 at 01:30 AM logging_out
(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:

x3680
x385
x189

asked: Jan 09 '11 at 06:18 PM

Seen: 2025 times

Last Updated: Jan 09 '11 at 06:18 PM