GPU Particles
self:set_size
ClientSets the size of the particle quad
Syntax
local status = self:set_size(
size
)Meshes use the SCALE parameter instead.
- See
self:set_mesh—sizeonly resizes the quad.
Parameters
| Type | Name | Description |
|---|---|---|
vector2 | size | Particle size as {width, height} |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
local entity = particle.gpu.create()
entity:set_size({0.3, 0.3})