Fade In and out when level is loaded

I’m useing this script to load levels.

#pragma strict

function OnTriggerEnter () {


I was wondering how can i fade in and out when a level is loaded. (eg. when you walk into the tigger to LoadLevel the scene fades in and once the new level is loaded it fades out.)

Thank you for your time and help.


(You’ll need to fade out before loading the new level, then the new level will need to fade itself in.)

As an alternative, I came across this recently, works a treat

link text