iTween.CameraFadeTo C# (CSharp) Method

CameraFadeTo() public static method

Changes the amount(transparency) of a camera fade over time with FULL customization options.
public static CameraFadeTo ( Hashtable args ) : void
args Hashtable
return void
    public static void CameraFadeTo(Hashtable args)
    {
        /*
        CameraFadeAdd(Defaults.cameraFadeDepth);

        //rescale cameraFade just in case screen size has changed to ensure it takes up the full screen:
        cameraFade.guiTexture.pixelInset=new Rect(0,0,Screen.width,Screen.height);
        */

        if(cameraFade){
            //establish iTween:
            ColorTo(cameraFade,args);
        }else{
            Debug.LogError("iTween Error: You must first add a camera fade object with CameraFadeAdd() before atttempting to use camera fading.");
        }
    }

Same methods

iTween::CameraFadeTo ( float amount, float time ) : void
iTween