Creates a new ParticleAnimationSet
Defines whether the animation set uses the duration
data in its static properties to determine how long a particle is visible for. Defaults to false.
Defines whether the animation set uses a looping timeframe for each particle determined by the startTime
, duration
and delay
data in its static properties function. Defaults to false. Requires usesDuration
to be true.
Defines whether the animation set uses the delay
data in its static properties to determine how long a particle is hidden for. Defaults to false. Requires usesLooping
to be true.
adapter is used to provide MovieClip to scripts taken from different platforms setter typically managed by factory. getter defaults to AwayJS class
Returns a vector of animation state objects that make up the contents of the animation data set.
Returns a vector of animation state objects that make up the contents of the animation data set.
A unique id for the asset, used to identify assets in an associative array
Initialiser function for static particle properties. Needs to reference a with the following format
initParticleFunc(prop:ParticleProperties)
{
//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.
Initialiser function scope for static particle properties
The original name used for this asset in the resource (e.g. file) in which
it was found. This may not be the same as name
, which may
have changed due to of a name conflict.
Property used by particle nodes that require color compilers
Property used by particle nodes that require compilers at the end of the shader
Returns a vector of the particle animation nodes contained within the set.
Retrieves a temporary GPU register that's still free.
An array of non-free temporary registers.
An additional register that's not free.
A temporary register that can be used.
Add an event listener
Dispatch an event
Retrieves the animation state object registered in the animation data set under the given name.
Check to determine whether a state is registered in the animation set under the given name.
check if an object has an event listener assigned to it
Remove an event listener
Called by the material to reset the GPU indicator before testing whether register space in the shader is available for running GPU-based animation code.
Generated using TypeDoc
The animation data set used by particle-based animators, containing particle animation data.
away.animators.ParticleAnimator