Camera
self:get_dimension
ClientRetrieves the dimension the camera renders
Syntax
local dimension = self:get_dimension()Parameters
| No parameters are accepted by this function |
|---|
Returns
| Type | Name | Description |
|---|---|---|
int | dimension | Current dimension id the camera renders |
Examples
local entity = core.camera.create()
core.engine.print("info", "Camera dimension:", entity:get_dimension())