Fade


Descriptions

Add a Fade FX to the current camera. Turn on or off the FX.

CameraPlay.Fade_ON(Color col, float time);

CameraPlay.Fade_ON(float time);

CameraPlay.Fade_ON(Color col);

CameraPlay.Fade_ON();

CameraPlay.Fade_OFF(Color col, float time);

CameraPlay.Fade_OFF(float time);

CameraPlay.Fade_OFF(Color col);

CameraPlay.Fade_OFF();

Parameters

Name Description Value Description Default
Time Set the apparition time in second 1 = 1 Second 0.5 second
Color Set the color of the wide screen Set the color in RGBA The color by default is black

Example:

CameraPlay.Fade_ON(1); // Turn on the Fade FX with a fading-on of 1 second.

CameraPlay.Fade_OFF(0.5f); // Turn off the Fade FX with a fading-on of 0.5 second.

Note:

Due to the On/Off system, you can only use 1 Fx at the time.

Note:

The effect is set by default on the main camera, if you want to change the current camera us CameraPlay.CurrentCamera and select the new camera All the other effect will use the new current camera.