- Home /
Gui appear and then fade to black
Hello,
I'm a fairly new coder and desperately need to create a system in which I can activate a Gui which will appear on my screen and slowly fade to transparency after a few seconds. Javascript would be ideal and thank you so much in advance.
Also, if there is anyway you can direct me to a decent time/deltatime tutorial it would be greatly appreciated!
Answer by Patel-Sagar · Apr 14, 2014 at 06:10 AM
you can do this by GUI.color for setting alpha value changing from 1 to 0. this way first GUI appears and then smoothly fade out. for smooth fade out you can use mathf.lerp to change value from 1 to 0.
Your answer
Follow this Question
Related Questions
How to make a GUI Texture (image) transparent? 2 Answers
Gui Button Solid 2 Answers
GUI text appears behind drawn texture. 0 Answers
Any fade-in/fade-out animations for GUI Text? 3 Answers
Quick GUI Texture Question 0 Answers