GPU Particles
self:set_dimension
ClientSets the dimension of the particle emitter
Syntax
local status = self:set_dimension(
dimension
)Dimensions are fully isolated from each other.
- Rendering — the client only shows entities that match the dimension of its active camera.
- Hierarchy — the dimension applies to the entity and all of its children.
- Attached — an entity parented to another entity always follows its parent's dimension and cannot set its own, the call raises an error. Detaching it keeps the dimension it had.
Parameters
| Type | Name | Description |
|---|---|---|
int | dimension | Dimension id to apply Must be within 0 to 65535 |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
local entity = particle.gpu.create()
entity:set_dimension(1)