GPU Particles
self:set_draw_order
ClientSets the order in which particles are drawn
Syntax
local status = self:set_draw_order(
order
)Parameters
| Type | Name | Description |
|---|---|---|
particle.gpu.draw_order | order | Draw order to apply |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
local entity = particle.gpu.create()
entity:set_draw_order(particle.gpu.draw_order.VIEW_DEPTH)