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.ORTHOGONALto switch projection before adjusting size.
Parameters
| Type | Name | Description |
|---|---|---|
float | size | Orthogonal view size |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
local entity = core.camera.create()
entity:set_projection(core.camera.projection.ORTHOGONAL)
entity:set_size(20)