self:get_horizontal_offset
Client
Retrieves the camera's horizontal offset
Syntax
local result = self:get_horizontal_offset()Parameters
| No parameters are accepted by this function |
|---|
Returns
| Type | Name | Description |
|---|---|---|
float | result | Current horizontal offset of the camera |
Examples
local entity = core.camera.create()
core.engine.print("info", entity:get_horizontal_offset())