splash screens

Is there any simple way to implement a splash screen in Unity?

Apply a texture to an upright plane that displays your logo and then position the camera in front of the plane and have the plane take up the whole camera view. You could then call the scene Splashscreen and then just use Application.LoadLevel(“Splashscreen”)

but what if I wanted a nice fade in/out?

Ah yeah, I know what you mean. If you have a light in the scene that illuminates the plane, you could write a script to dim the light over a certain amount of time.

Use a Self-Illuminated Diffuse material and animate the main color. Here’s an example from the scripting reference:

so I’m trying to animate the transparency…

I can access the alpha with Color.a, but is there any way to animate just it or do I have to re-build the color’s rgb every time as well?

heh, i remember this:

for (var i = 0; i < 100; i++) {
  material.color.a = i;
  yield WaitForSeconds(0.01);
}

or something in that direction. heh,

There’s a FadeIn/Out script on the wiki which works quite well.

I use a variant of it for my splash screens which consist of a GUITexture and a sound effect.