Creates a new ParticleSpriteSheetNode
Defines whether the mode of operation acts on local properties of a particle or global properties of the node.
Defines the number of columns in the spritesheet, when in global mode. Defaults to 1.
Defines the number of rows in the spritesheet, when in global mode. Defaults to 1.
Defines the default cycle duration in seconds, when in global mode. Defaults to 1.
Defines the default cycle phase, when in global mode. Defaults to 0.
Defines the total number of frames used by the spritesheet, when in global mode. Defaults to the number defined by numColumns and numRows.
adapter is used to provide MovieClip to scripts taken from different platforms setter typically managed by factory. getter defaults to AwayJS class
A unique id for the asset, used to identify assets in an associative array
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.
Reference for spritesheet node properties on a single particle (when in local property mode).
Expects a Vector3D
representing the cycleDuration (x), optional phaseTime (y).
Returns the length of the data used by the node when in LOCAL_STATIC
mode. Used to generate the local static data of the particle animation set.
Returns the property mode of the particle animation node. Typically set in the node constructor
Defines the number of columns in the spritesheet, when in global mode. Defaults to 1. Read only.
Defines the number of rows in the spritesheet, when in global mode. Defaults to 1. Read only.
Returns the generated data vector of the node after one particle pass during the generation of all local static data of the particle animation set.
Returns the priority of the particle animation node, used to order the agal generated in a particle animation set. Set automatically on instantiation.
Defines the total number of frames used by the spritesheet, when in global mode. Defaults to the number defined by numColumns and numRows. Read only.
Add an event listener
Dispatch an event
Returns the AGAL code of the particle animation node for use in the fragment shader.
Returns the AGAL code of the particle animation node for use in the vertex shader.
check if an object has an event listener assigned to it
Remove an event listener
Generated using TypeDoc
A particle animation node used when a spritesheet texture is required to animate the particle. NB: to enable use of this node, the
repeat
property on the material has to be set to true.