ShockWave


Descriptions

Add a ShockWave to the current camera, and remove it automatically after the animation is end. By default, the timer duration is set to 1 second.

CameraPlay.Shockwave(float x, float y, float time, float size);

CameraPlay.Shockwave(float x, float y, float time);

CameraPlay.Shockwave(float x, float y);

CameraPlay.Shockwave();

Parameters

Name Description Value Description Default
X The x position of the effect. 0 = left side of the screen. 0.5f = center of the screen Random Value between 0 to 1
Y The y position of the effect. 0 = down side of the screen. 0.5f = center of the screen Random Value between 0 to 1
Time Time duration of the effect animation in second. 1 = 1 Second 1 second
Size Size of the Distortion FX 1 = normal / 2 = Mul by 2 / 0.5 = Division by 2 Set to 1

Example:

CameraPlay.Shockwave(); // Add Shockwave Effect for 2 seconds

Note:

CameraPlay.Shockwave() : Set a ShockWave randomly on the screen.

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.