EARTHQUAKE / SHAKE


Descriptions

Add an EarthQuake / Shake effect on the camera The effect will be automatically disapear/distroyed after X second(s)

CameraPlay.EarthQuakeShake(float Time, float Speed, float Size);

CameraPlay.EarthQuakeShake(float Time, float Speed);

CameraPlay.EarthQuakeShake(float Time);

CameraPlay.EarthQuakeShake()

Parameters

Name Description Value Description Default
Time Set the time effect in second 1 = 1 second 1 second
Speed Set the animation speed Speed in Frame per second 15 fps
Size Set the size Shake intensity 2

Example:

CameraPlay.EarthQuakeShake(2); // Add Earth Quake Effect for 2 seconds

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.