public abstract class ParticleControllerInfluencer extends Influencer
Influencer which controls which ParticleController will be assigned to a particle.| Modifier and Type | Class and Description |
|---|---|
static class |
ParticleControllerInfluencer.Random
Assigns a random controller of
templates to the particles. |
static class |
ParticleControllerInfluencer.Single
Assigns the first controller of
templates to the particles. |
| Modifier and Type | Field and Description |
|---|---|
Array<ParticleController> |
templates |
| Constructor and Description |
|---|
ParticleControllerInfluencer() |
ParticleControllerInfluencer(ParticleController... templates) |
ParticleControllerInfluencer(ParticleControllerInfluencer influencer) |
| Modifier and Type | Method and Description |
|---|---|
void |
allocateChannels()
Called during initialization to allocate additional particles channels
|
void |
dispose()
Releases all resources of this object.
|
void |
end()
Called at the end of the simulation.
|
void |
load(AssetManager manager,
ResourceData resources) |
void |
save(AssetManager manager,
ResourceData resources) |
activateParticles, copy, init, killParticles, read, set, start, update, writepublic Array<ParticleController> templates
public ParticleControllerInfluencer()
public ParticleControllerInfluencer(ParticleController... templates)
public ParticleControllerInfluencer(ParticleControllerInfluencer influencer)
public void allocateChannels()
ParticleControllerComponentallocateChannels in class ParticleControllerComponentpublic void end()
ParticleControllerComponentend in class ParticleControllerComponentpublic void dispose()
Disposabledispose in interface Disposabledispose in class ParticleControllerComponentpublic void save(AssetManager manager, ResourceData resources)
save in interface ResourceData.Configurablesave in class ParticleControllerComponentpublic void load(AssetManager manager, ResourceData resources)
load in interface ResourceData.Configurableload in class ParticleControllerComponent