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, update
public 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.Configurable
load
in class ParticleControllerComponent
public void save(AssetManager manager, ResourceData resources)
save
in interface ResourceData.Configurable
save
in class ParticleControllerComponent
public void allocateChannels()
ParticleControllerComponent
allocateChannels
in class ParticleControllerComponent
public void write(Json json)
write
in interface Json.Serializable
write
in class ParticleControllerComponent
public void read(Json json, JsonValue jsonData)
read
in interface Json.Serializable
read
in class ParticleControllerComponent
Copyright © 2020. All rights reserved.