Fish Eye


Descriptions

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

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

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

CameraPlay.FishEye(float x, float y);

CameraPlay.FishEye();

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.FishEye(); // Add Fish Eye Effect for 2 seconds

Note:

CameraPlay.FishEye() : Set a Fish Eye 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.