Skip to main content

GpuParticleConfig

Hierarchy

Index

Properties

optionalinheritedacc

acc?: Vector

Starting acceleration of the particle

optionalinheritedangularVelocity

angularVelocity?: number

Starting angular velocity of the particle

optionalinheritedbeginColor

beginColor?: Color

Beginning color of the particle over its life

optionalinheritedendColor

endColor?: Color

Ending color of the particle over its life

optionalinheritedendSize

endSize?: number

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

optionalinheritedfade

fade?: boolean

Should the particle fade out to fully transparent over their life

optionalinheritedfocus

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

optionalinheritedfocusAccel

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

optionalinheritedlife

life?: number

Totally life of the particle in milliseconds

optionalinheritedmaxAngle

maxAngle?: number

Maximum angle to use for the particles starting rotation

optionalmaxParticles

maxParticles?: number

Set the maximum particles to use for this emitter

optionalinheritedmaxSize

maxSize?: number

Largest possible starting size of the particle

optionalinheritedmaxSpeed

maxSpeed?: number

Maximum magnitude of the particle starting speed

optionalinheritedminAngle

minAngle?: number

Minimum angle to use for the particles starting rotation

optionalinheritedminSize

minSize?: number

Smallest possible starting size of the particle

optionalinheritedminSpeed

minSpeed?: number

Minimum magnitude of the particle starting speed

optionalinheritedopacity

opacity?: number

Starting opacity of the particle

optionalinheritedpos

pos?: Vector

Starting position of the particle

optionalinheritedrandomRotation

randomRotation?: boolean

Indicates whether particles should start with a random rotation

optionalinheritedrotation

rotation?: number

Starting rotation of the particle

optionalinheritedsize

size?: number

Size of the particle in pixels

optionalinheritedstartSize

startSize?: number

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

optionalinheritedtransform

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.

optionalinheritedvel

vel?: Vector

Starting velocity of the particle

optionalinheritedz

z?: number

Optionally set the z index of the particle, default is 0