Bullet Hole
Descriptions
Add a Bullet Hole to the current camera, and remove it automatically after the animation is end. By default, the timer duration is set to 1 second.
CameraPlay.BulletHole(float x, float y, float time, float size);
CameraPlay.BulletHole(float x, float y, float time);
CameraPlay.BulletHole(float x, float y);
CameraPlay.BulletHole();
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.BulletHole(); // Add a BulletHole effect for 4 seconds
Note:
CameraPlay.BulletHole() : Set a BulletHole 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.