Layer:getViewport
EditReturns the viewport of the layer. The viewport is a 2D region of pixels that the layer will display within its plane.
x, y, w, h = Layer:getViewport()
Arguments
None
Returns
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. |