self:get_projection

Client

Retrieves the current projection mode of the camera


Syntax

local mode = self:get_projection()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
core.camera.projectionmodeCurrent projection mode of the camera

Examples

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

core.engine.print("info", "Projection:", entity:get_projection())

On this page