Most visited

Recently visited

ParticleEmitter.ParticleEmitterBuilder

public static class ParticleEmitter.ParticleEmitterBuilder
extends Object

java.lang.Object
   ↳ com.viro.core.ParticleEmitter.ParticleEmitterBuilder


Builder for creating ParticleEmitter objects.

Summary

Public constructors

ParticleEmitter.ParticleEmitterBuilder(ViroContext viroContext, Surface surface)

Constructor for ParticleEmitterBuilder.

Public methods

ParticleEmitter.ParticleEmitterBuilder blendMode(Material.BlendMode blendMode)

Refer to setBlendMode(Material.BlendMode).

ParticleEmitter.ParticleEmitterBuilder bloomThreshold(float bloomThreshold)

Refer to setBloomThreshold(float).

ParticleEmitter build()

Return the built ParticleEmitter object.

ParticleEmitter.ParticleEmitterBuilder delay(int delay)

Refer to setDelay(int).

ParticleEmitter.ParticleEmitterBuilder duration(int duration)

Refer to setDuration(int).

ParticleEmitter.ParticleEmitterBuilder emissionBursts(List<ParticleEmitter.EmissionBurst> emissionBursts)

Refer to setEmissionBursts(List).

ParticleEmitter.ParticleEmitterBuilder emissionRatePerMeter(int emissionRatePerMeterMin, int emissionRatePerMeterMax)

Refer to setEmissionRatePerMeter(int, int).

ParticleEmitter.ParticleEmitterBuilder emissionRatePerSecond(int emissionRatePerSecondMin, int emissionRatePerSecondMax)

Refer to setEmissionRatePerSecond(int, int).

ParticleEmitter.ParticleEmitterBuilder fixedToEmitter(boolean fixedToEmitter)

Refer to setFixedToEmitter(boolean).

ParticleEmitter.ParticleEmitterBuilder loop(boolean loop)

Refer to setLoop(boolean).

ParticleEmitter.ParticleEmitterBuilder maxParticles(int maxParticles)

Refer to setMaxParticles(int).

ParticleEmitter.ParticleEmitterBuilder particleLifetimeMin(int particleLifetimeMin, int particleLifetimeMax)

Refer to setParticleLifetime(int, int).

ParticleEmitter.ParticleEmitterBuilder spawnVolume(ParticleEmitter.SpawnVolume spawnVolume, boolean spawnOnSurface)

Refer to setSpawnVolume(SpawnVolume, boolean).

Public constructors

ParticleEmitter.ParticleEmitterBuilder

ParticleEmitter.ParticleEmitterBuilder (ViroContext viroContext, 
                Surface surface)

Constructor for ParticleEmitterBuilder.

Parameters
viroContext ViroContext

surface Surface

Public methods

blendMode

ParticleEmitter.ParticleEmitterBuilder blendMode (Material.BlendMode blendMode)

Refer to setBlendMode(Material.BlendMode).

Parameters
blendMode Material.BlendMode

Returns
ParticleEmitter.ParticleEmitterBuilder This builder.

bloomThreshold

ParticleEmitter.ParticleEmitterBuilder bloomThreshold (float bloomThreshold)

Refer to setBloomThreshold(float).

Parameters
bloomThreshold float

Returns
ParticleEmitter.ParticleEmitterBuilder This builder.

build

ParticleEmitter build ()

Return the built ParticleEmitter object.

Returns
ParticleEmitter The built ParticleEmitter.

delay

ParticleEmitter.ParticleEmitterBuilder delay (int delay)

Refer to setDelay(int).

Parameters
delay int

Returns
ParticleEmitter.ParticleEmitterBuilder This builder.

duration

ParticleEmitter.ParticleEmitterBuilder duration (int duration)

Refer to setDuration(int).

Parameters
duration int

Returns
ParticleEmitter.ParticleEmitterBuilder This builder.

emissionBursts

ParticleEmitter.ParticleEmitterBuilder emissionBursts (List<ParticleEmitter.EmissionBurst> emissionBursts)

Refer to setEmissionBursts(List).

Parameters
emissionBursts List

Returns
ParticleEmitter.ParticleEmitterBuilder This builder.

emissionRatePerMeter

ParticleEmitter.ParticleEmitterBuilder emissionRatePerMeter (int emissionRatePerMeterMin, 
                int emissionRatePerMeterMax)

Refer to setEmissionRatePerMeter(int, int).

Parameters
emissionRatePerMeterMin int

emissionRatePerMeterMax int

Returns
ParticleEmitter.ParticleEmitterBuilder This builder.

emissionRatePerSecond

ParticleEmitter.ParticleEmitterBuilder emissionRatePerSecond (int emissionRatePerSecondMin, 
                int emissionRatePerSecondMax)

Refer to setEmissionRatePerSecond(int, int).

Parameters
emissionRatePerSecondMin int

emissionRatePerSecondMax int

Returns
ParticleEmitter.ParticleEmitterBuilder This builder.

fixedToEmitter

ParticleEmitter.ParticleEmitterBuilder fixedToEmitter (boolean fixedToEmitter)

Refer to setFixedToEmitter(boolean).

Parameters
fixedToEmitter boolean

Returns
ParticleEmitter.ParticleEmitterBuilder This builder.

loop

ParticleEmitter.ParticleEmitterBuilder loop (boolean loop)

Refer to setLoop(boolean).

Parameters
loop boolean

Returns
ParticleEmitter.ParticleEmitterBuilder This builder.

maxParticles

ParticleEmitter.ParticleEmitterBuilder maxParticles (int maxParticles)

Refer to setMaxParticles(int).

Parameters
maxParticles int

Returns
ParticleEmitter.ParticleEmitterBuilder This builder.

particleLifetimeMin

ParticleEmitter.ParticleEmitterBuilder particleLifetimeMin (int particleLifetimeMin, 
                int particleLifetimeMax)

Refer to setParticleLifetime(int, int).

Parameters
particleLifetimeMin int

particleLifetimeMax int

Returns
ParticleEmitter.ParticleEmitterBuilder This builder.

spawnVolume

ParticleEmitter.ParticleEmitterBuilder spawnVolume (ParticleEmitter.SpawnVolume spawnVolume, 
                boolean spawnOnSurface)

Refer to setSpawnVolume(SpawnVolume, boolean).

Parameters
spawnVolume ParticleEmitter.SpawnVolume

spawnOnSurface boolean

Returns
ParticleEmitter.ParticleEmitterBuilder

Hooray!