M MY Multiplayer: Wiki
Side
Kind

engineGetRenderResolution

Client

Returns the size in pixels the scene is rendered at and the size of the final image in the window.

int, int, int, int|false engineGetRenderResolution()

Returns

The render width and height, then the output width and height, or false if the renderer is not running.

Example

local renderWidth, renderHeight, outputWidth, outputHeight = engineGetRenderResolution()
outputDebugString(("%dx%d upscaled to %dx%d"):format(renderWidth, renderHeight, outputWidth, outputHeight))

See also