self:set_size

Client

Sets the orthogonal size of the camera


Syntax

local status = self:set_size(
    size
)

Parameters

TypeNameDescription
floatsizeOrthogonal size to apply to the camera

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

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

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

On this page