GPU Particles

self:get_scale

Client

Retrieves the local scale of the particle emitter

Syntax

local scale = self:get_scale()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
vector3scaleCurrent local scale as {x, y, z}

Examples

Get the local scale of a particle emitter
local entity = particle.gpu.create()
local scale = entity:get_scale()

core.engine.print("info", "Emitter scale:", util.table.unpack(scale))

On this page