I've been reading many solutions to (Gameobject fade out/in) in the forum archives. But, none have worked for me, or I did not understand how to implement them correctly.
My object description: It is a 3d object, a simple plane. (Attached images below) I am using it as a HUD element. It has an Unlit Transparent Cutout shader.
I am not using a 2d framework in my project - like ngui or 2dtk.
Basically, I'd like it to FadeIn on level load, then FadeOut when a button is pressed.
----------------------------------
I could not figure out how to do this:
Hi,
yes, there is kind of. It's a bit involving tho.
basically,
1: you need to have a transparent material applied to it, so if you have a diffuse, switch to "transparent diffuse" so that you can control the alpha channel.
2: have the color in a FsmColor variable, and animate the alpha channel to fade in or out.
3: use the action "Set material Color", https://hutonggames.fogbugz.com/default.asp?W380 and plug this Fsmcolor you are animating.
If you need a working example, let me know.
Bye,
Jean
----------------------------------
I tried Itween FadeTo FadeFrom, but it has problems. #1) it drops my frame rate significantly, even in the simplest of scenes. #2) it is not compatible with an Unlit Transparent shader - so I have to use diffuse with a dedicated light to brighten it to match the other Unlit elements.