core.camera.keep_aspect

Client

Enumeration of aspect ratio preservation modes available for the camera


Values

ConstantDescription
core.camera.keep_aspect.WIDTHPreserves the camera's width when the viewport is resized
core.camera.keep_aspect.HEIGHTPreserves the camera's height when the viewport is resized

Examples

Set the keep aspect mode on a camera
local entity = core.camera.create()

entity:set_keep_aspect(core.camera.keep_aspect.HEIGHT)

On this page