self:set_size

Client

Sets the camera's orthogonal size in meters


Syntax

local status = self:set_size(
    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

TypeNameDescription
floatsizeOrthogonal view size

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

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

entity:set_projection(core.camera.projection.ORTHOGONAL)
entity:set_size(20)

On this page