core.camera.keep_aspect
Client
Enumeration of aspect ratio preservation modes available for the camera
Values
| Constant | Description |
|---|---|
core.camera.keep_aspect.WIDTH | Preserves the camera's width when the viewport is resized |
core.camera.keep_aspect.HEIGHT | Preserves the camera's height when the viewport is resized |
Examples
local entity = core.camera.create()
entity:set_keep_aspect(core.camera.keep_aspect.HEIGHT)