Layer:setViewport
EditSets the viewport of the layer. The viewport is a 2D region of pixels that the layer will display within its plane.
Layer:setViewport(x, y, w, h)Arguments
| Name | Type | Description |
| x | number | The x coordinate of the upper-left corner of the viewport. |
| y | number | The y coordinate of the upper-left corner of the viewport. |
| w | number | The width of the viewport, in pixels. |
| h | number | The height of the viewport, in pixels. |
Returns
Nothing