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