public abstract class RegionInfluencer extends Influencer
Influencer which assigns a region of a Texture to the particles.| Modifier and Type | Class and Description |
|---|---|
static class |
RegionInfluencer.Animated
Assigns a region to the particles using the particle life percent to calculate the current index in the
regions array. |
static class |
RegionInfluencer.AspectTextureRegion
It's a class used internally by the
RegionInfluencer to represent a texture region. |
static class |
RegionInfluencer.Random
Assigns a random region of
regions to the particles. |
static class |
RegionInfluencer.Single
Assigns the first region of
regions to the particles. |
| Modifier and Type | Field and Description |
|---|---|
String |
atlasName |
Array<RegionInfluencer.AspectTextureRegion> |
regions |
| Constructor and Description |
|---|
RegionInfluencer() |
RegionInfluencer(int regionsCount) |
RegionInfluencer(RegionInfluencer regionInfluencer) |
RegionInfluencer(Texture texture) |
RegionInfluencer(TextureRegion... regions)
All the regions must be defined on the same Texture
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(TextureRegion... regions) |
void |
allocateChannels()
Called during initialization to allocate additional particles channels
|
void |
clear() |
void |
load(AssetManager manager,
ResourceData resources) |
void |
read(Json json,
JsonValue jsonData) |
void |
save(AssetManager manager,
ResourceData resources) |
void |
setAtlasName(String atlasName) |
void |
write(Json json) |
activateParticles, copy, dispose, end, init, killParticles, set, start, updatepublic Array<RegionInfluencer.AspectTextureRegion> regions
public String atlasName
public RegionInfluencer(int regionsCount)
public RegionInfluencer()
public RegionInfluencer(TextureRegion... regions)
public RegionInfluencer(Texture texture)
public RegionInfluencer(RegionInfluencer regionInfluencer)
public void setAtlasName(String atlasName)
public void add(TextureRegion... regions)
public void clear()
public void load(AssetManager manager, ResourceData resources)
load in interface ResourceData.Configurableload in class ParticleControllerComponentpublic void save(AssetManager manager, ResourceData resources)
save in interface ResourceData.Configurablesave in class ParticleControllerComponentpublic void allocateChannels()
ParticleControllerComponentallocateChannels in class ParticleControllerComponentpublic void write(Json json)
write in interface Json.Serializablewrite in class ParticleControllerComponentpublic void read(Json json, JsonValue jsonData)
read in interface Json.Serializableread in class ParticleControllerComponentCopyright © 2021. All rights reserved.