class ParticleAnimationSet
package away3d.animators
extends AnimationSetBase › NamedAssetBase
implements IAnimationSet
Available on all platforms
The animation data set used by particle-based animators, containing particle animation data.
See also:
away3d.animators.ParticleAnimator
Static variables
staticPOST_PRIORITY:Int = 9
Property used by particle nodes that require compilation at the end of the shader
Constructor
new(usesDuration:Bool = false, usesLooping:Bool = false, usesDelay:Bool = false)
Creates a new ParticleAnimationSet
Parameters:
[optional] | usesDuration Defines whether the animation set uses the |
|---|---|
[optional] | usesLooping Defines whether the animation set uses a looping timeframe for each particle determined by the |
[optional] | usesDelay Defines whether the animation set uses the |
Variables
initParticleFunc:Dynamic ‑> Void
Initialiser function for static particle properties. Needs to reference a function with teh following format
function initParticleFunc(prop:ParticleProperties):void
{
//code for settings local properties
}
Aside from setting any properties required in particle animation nodes using local static properties, the initParticleFunc function
is required to time node requirements as they may be needed. These properties on the ParticleProperties object can include
startTime, duration and delay. The use of these properties is determined by the setting
arguments passed in the constructor of the particle animation set. By default, only the startTime property is required.
Methods
getAGALVertexCode(pass:MaterialPassBase, sourceRegisters:Vector<String>, targetRegisters:Vector<String>, profile:String):String
@inheritDoc