self:set_projection
Client
Sets the camera's projection mode
Syntax
local status = self:set_projection(
mode
)Parameters
| Type | Name | Description |
|---|---|---|
core.camera.projection | mode | Projection mode to apply |
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)