Pixi Particle Emitter
This node creates and manages particle effects with customizable emission patterns and particle behaviors.
The Pixi Particle Emitter creates dynamic particle effects in your Pixi scene.
The Pixi Particle Emitter node creates and manages particle systems for creating dynamic visual effects like fire, smoke, explosions, sparks, and other particle-based animations in your Pixi scene.
Inputs
Position
| Data | Description |
|---|---|
| X | Emitter horizontal position |
| Y | Emitter vertical position |
Appearance
| Data | Description |
|---|---|
| Visible | Emitter visibility |
| Container Alpha | Overall transparency |
Particle Textures
| Data | Description |
|---|---|
| Particle Texture 1 | First particle texture image |
| Particle Texture 2 | Second particle texture image |
| Particle Texture 3 | Third particle texture image |
| Particle Texture 4 | Fourth particle texture image |
| Particle Texture 5 | Fifth particle texture image |
Emitter Configuration
| Data | Description |
|---|---|
| Emitter Config | JSON configuration for particle behavior |
| Emit | Enable/disable particle emission |
| Particle Count | Maximum number of particles |
Control
| Signal | Description |
|---|---|
| Start Emitting | Signal to start emission |
| Stop Emitting | Signal to stop emission gracefully |
| Kill All Particles | Signal to immediately remove all particles |
Presets
| Data | Description |
|---|---|
| Fire Preset | Fire effect configuration |
| Smoke Preset | Smoke effect configuration |
| Explosion Preset | Explosion effect configuration |
| Spark Preset | Spark effect configuration |
Animation
| Data | Description |
|---|---|
| Ticker Enabled | Animation ticker |
| Ticker Speed | Animation speed |
| Animation Type | Animation type |
| Custom Animation Code | Custom animation code |
Outputs
| Data | Description |
|---|---|
| Active Particle Count | Current number of active particles |
| Textures Loaded | Boolean indicating texture load status |
| Textures Loading | Boolean indicating loading state |
| Loaded Texture Count | Number of loaded textures |
| Node Reference | Node reference |
Usage
Pixi Particle Emitter nodes are used to create dynamic particle effects in your Pixi scene. They support:
- Multiple particle textures
- Customizable emission patterns
- Particle lifecycle management
- Preset configurations
- Performance monitoring
Emitter Configuration
The Emitter Config input accepts a JSON object with particle system settings:
{
"alpha": {
"start": 1,
"end": 0
},
"scale": {
"start": 1,
"end": 0.5
},
"speed": {
"start": 100,
"end": 50
},
"lifetime": {
"min": 1,
"max": 3
},
"frequency": 0.1,
"emitterLifetime": -1,
"maxParticles": 100,
"pos": {
"x": 0,
"y": 0
},
"addAtBack": false,
"spawnType": "circle",
"spawnCircle": {
"x": 0,
"y": 0,
"r": 10
}
}
Performance Tips
- Limit Particle Count based on device capabilities
- Use appropriate Frequency values
- Monitor Active Particle Count for performance
- Use preset configurations when possible
- Consider particle lifetime for memory management
Example Use Cases
- Game Effects: Explosions, fire, smoke, and magic spells
- UI Effects: Button clicks, notifications, and transitions
- Environmental Effects: Rain, snow, dust, and atmospheric particles
- Decorative Effects: Sparkles, confetti, and visual enhancements