ex_camera_set_region(cameraHandle, x, y, width, height)
| Argument | Description |
|---|---|
| cameraHandle | The camera handle |
| x | The camera's region X |
| y | The camera's region Y |
| width | The camera's region width |
| height | The camera's region height |
This function will set the camera region x/y and dimensions. It can help when positioning and resizing multiple cameras to achieve a split screen view for example.
//Split two camera views horizontally over a 640x480 resolution ex_camera_set_region(global._camera, 0, 0, 320, 480); ex_camera_set_region(global._camera2, 321, 0, 319, 480);