Camera

self:get_dimension

Client

Retrieves the dimension the camera renders

Syntax

local dimension = self:get_dimension()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
intdimensionCurrent dimension id the camera renders

Examples

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

core.engine.print("info", "Camera dimension:", entity:get_dimension())

On this page