Pixel
Descriptions
Add a Pixel to the current camera. Turn on or off the FX.
CameraPlay.Pixel_ON(float size, float time);
CameraPlay.Pixel_ON(float Time);
CameraPlay.Pixel_ON();
CameraPlay.Pixel_OFF(float Time);
CameraPlay.Pixel_OFF();
Parameters
Name | Description | Value Description | Default |
---|---|---|---|
Time | Set the time effect in second | 1 = 1 Second | 1 Second |
size | Set the size of the pixel | Pixel Size | 4 |
Example:
CameraPlay.Pixel_ON(8,1); // Turn on the Pixel FX with a fading-on of 1 second and the size of 8 pixel
CameraPlay.Pixel_OFF(0.5f); // Turn off the Pixel 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.