hytopia
Version:
The HYTOPIA SDK makes it easy for developers to create massively multiplayer games using JavaScript or TypeScript.
56 lines (27 loc) • 1.13 kB
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [server](./server.md) > [ParticleEmitterManager](./server.particleemittermanager.md) > [getAllParticleEmitters](./server.particleemittermanager.getallparticleemitters.md)
## ParticleEmitterManager.getAllParticleEmitters() method
Retrieves all spawned ParticleEmitter instances for the world.
**Signature:**
```typescript
getAllParticleEmitters(tickAllocated?: boolean): ParticleEmitter[];
```
## Parameters
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
tickAllocated
</td><td>
boolean
</td><td>
_(Optional)_ Whether to use the tick allocator to allocate the returned array of ParticleEmitter instances. The allocated array will be collected and released at the end of the current tick if true. Only use this if you know what you're doing.
</td></tr>
</tbody></table>
**Returns:**
[ParticleEmitter](./server.particleemitter.md)<!-- -->\[\]
An array of ParticleEmitter instances.