GPU Particles

self:get_size

Client

Retrieves the size of the particle quad

Syntax

local size = self:get_size()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
vector2sizeParticle size as {width, height}

Examples

Get the particle size
local entity = particle.gpu.create()

local size = entity:get_size()

core.engine.print("info", util.table.unpack(size))

On this page