self:get_position
Client
Retrieves the current position of the webview
Syntax
local position = self:get_position()Parameters
| No parameters are accepted by this function |
|---|
Returns
| Type | Name | Description |
|---|---|---|
vector2 | position | Position of the webview as {x, y} |
Examples
local entity = core.webview.create()
local position = entity:get_position()
core.engine.print("info", "Webview position:", util.table.unpack(position))