Skip to main content

GpuParticleConfig

Hierarchy

Index

Properties

optionalacc

acc?: Vector

Starting acceleration of the particle

optionalangularVelocity

angularVelocity?: number

Starting angular velocity of the particle

optionalbeginColor

beginColor?: Color

Beginning color of the particle over its life

optionalendColor

endColor?: Color

Ending color of the particle over its life

optionalendSize

endSize?: number

Set the end size when you want to change particle size over their life

optionalfade

fade?: boolean

Should the particle fade out to fully transparent over their life

optionalfocus

focus?: Vector

Gets or sets the optional focus where all particles should accelerate towards

If the particle transform is global the focus is in world space, otherwise it is relative to the emitter

optionalfocusAccel

focusAccel?: number

Gets or sets the optional acceleration for focusing particles if a focus has been specified

optionalgraphic

graphic?: Sprite

Only Sprite graphics are supported in GPU particles at the moment

optionallife

life?: number

Totally life of the particle in milliseconds

optionalmaxAngle

maxAngle?: number

Maximum angle to use for the particles starting rotation

optionalmaxParticles

maxParticles?: number

Set the maximum particles to use for this emitter

optionalmaxSize

maxSize?: number

Largest possible starting size of the particle

optionalmaxSpeed

maxSpeed?: number

Maximum magnitude of the particle starting speed

optionalminAngle

minAngle?: number

Minimum angle to use for the particles starting rotation

optionalminSize

minSize?: number

Smallest possible starting size of the particle

optionalminSpeed

minSpeed?: number

Minimum magnitude of the particle starting speed

optionalopacity

opacity?: number

Starting opacity of the particle

optionalpos

pos?: Vector

Starting position of the particle

optionalrandomRotation

randomRotation?: boolean

Indicates whether particles should start with a random rotation

optionalrotation

rotation?: number

Starting rotation of the particle

optionalsize

size?: number

Size of the particle in pixels

optionalstartSize

startSize?: number

Set the start size when you want to change particle size over their life

optionaltransform

transform?: ParticleTransform

Optionally set the emitted particle transform style, ParticleTransform.Global is the default and emits particles as if they were world space objects, useful for most effects.

If set to ParticleTransform.Local particles are children of the emitter and move relative to the emitter as they would in a parent/child actor relationship.

optionalvel

vel?: Vector

Starting velocity of the particle