self:get_size
Client
Retrieves the current size of the texture
Syntax
local size = self:get_size()Parameters
| No parameters are accepted by this function |
|---|
Returns
| Type | Name | Description |
|---|---|---|
vector2 | size | Size of the svg as {width, height} |
Examples
local entity = core.svg.create("assets/icon.svg")
local size = entity:get_size()
core.engine.print("info", "SVG size:", util.table.unpack(size))