self:get_size

Client

Retrieves the camera's orthogonal size in meters


Syntax

local result = self:get_size()

Only applicable in orthogonal projection mode. Refer core.camera.set_projection to configure the active projection mode.

  • Orthogonal mode required — calling this function in any other projection mode will have no effect.
  • Recommended usage — combine with core.camera.projection.ORTHOGONAL to switch projection before adjusting size.

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
floatresultCurrent orthogonal size of the camera

Examples

Get the orthogonal camera size
local entity = core.camera.create()

entity:set_size(10)
core.engine.print("info", entity:get_size()) -- 10.0

On this page