Hi,
I’m showing a message on screen and I would like to fade that message out after 3 seconds.
I created a gui style.
var myStyle : GUIStyle;
static var showText : String = "Welcome";
function OnGUI () {
GUI.depth = 0;
GUI.Label (Rect (Screen.width / 2 - 235, Screen.height - 40, 500, 50), showText, myStyle);
}
This code displays the text “welcome” but how can I make it fade out within 5 seconds? Each time I google I get directed to the wiki page about fade.js but I am not sure if that’s what I need. I tried using the fade.js but I don’t understand how I can fade in/out my text with that.