self:get_keep_aspect

Client

Retrieves the current aspect ratio preservation mode of the camera


Syntax

local mode = self:get_keep_aspect()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
core.camera.keep_aspectmodeCurrent aspect ratio mode of the camera

Examples

Get the keep aspect mode of a camera
local entity = core.camera.create()

core.engine.print("info", "Keep aspect:", entity:get_keep_aspect())

On this page