self:get_keep_aspect_mode

Client

Retrieves the camera's current aspect ratio mode


Syntax

local result = self:get_keep_aspect_mode()

Parameters

No parameters are accepted by this function

Returns

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

Examples

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

core.engine.print("info", entity:get_keep_aspect_mode())

On this page