GPU Particles

self:get_type

Client

Retrieves the type name of the particle emitter instance

Syntax

local result = self:get_type()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
string | boolresultType name of the instance, false if unavailable

Examples

Get the type of a particle emitter instance
local entity = particle.gpu.create()

core.engine.print("info", entity:get_type()) -- "particle.gpu"

On this page