GPU Particles

self:set_size

Client

Sets the size of the particle quad

Syntax

local status = self:set_size(
    size
)

Meshes use the SCALE parameter instead.

Parameters

TypeNameDescription
vector2sizeParticle size as {width, height}

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Make particles 30 cm wide
local entity = particle.gpu.create()

entity:set_size({0.3, 0.3})

On this page