I’m trying to make a screen that fades in. I have black colored plane in front of camera(Transparent/VertexLit) I want to make it that when the short cutscene ends it fades in.
I want to make something like:
if(cutsceneEnd == true){
//what do i put here to make to do +alpha?
}
Try this .
myplane : GameObject;
function Update()
{
if(cutsceneEnd == true){
myplane.renderer.material.color.a -= 0.6 * Time.deltaTime;
}
}
After two seconds of Google, I got this page. Any good?
http://wiki.unity3d.com/index.php?title=FadeInOut
I did something like this using the HOTween plugin. It allows you to tween any property. In my game I wanted to fade to white after a cutscene so I had a white square that tweened from alpha 0 to alpha 255.