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.ORTHOGONALto switch projection before adjusting size.
Parameters
| No parameters are accepted by this function |
|---|
Returns
| Type | Name | Description |
|---|---|---|
float | result | Current orthogonal size of the camera |
Examples
local entity = core.camera.create()
entity:set_size(10)
core.engine.print("info", entity:get_size()) -- 10.0