ex_camera_set_safe_area

Sets the safe area for the camera

Syntax

ex_camera_set_safe_area(cameraHandle, amount)
Argument Description
cameraHandle The camera handle
amount The safe area, default is 128
Returns nothing

Description

This function allows you to increase or decrease the safe area around the camera view. This can help if you plan to rotate or shake the camera a lot, so that several effect overlays such as fade or flash do not appear cut-off. This increases the out-of-view overlay edges to help prevent the effects looking bad.

Example

//Set the safe area for the camera to 512 pixels
ex_camera_set_safe_area(global._camera, 512);

Minimum Supported Version

exCamera 0.8.0