Packageaway3d.animators.nodes
Classpublic class ParticleSpriteSheetNode
InheritanceParticleSpriteSheetNode Inheritance ParticleNodeBase Inheritance AnimationNodeBase Inheritance NamedAssetBase Inheritance flash.events.EventDispatcher

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.



Public Properties
 PropertyDefined By
 InheritedassetFullPath : Array
[read-only]
NamedAssetBase
 InheritedassetNamespace : String
[read-only]
NamedAssetBase
 InheritedassetType : String
[read-only]
AnimationNodeBase
 InheriteddataLength : int
[read-only] Returns the length of the data used by the node when in LOCAL_STATIC mode.
ParticleNodeBase
 Inheritedmode : uint
[read-only] Returns the property mode of the particle animation node.
ParticleNodeBase
 Inheritedname : String
NamedAssetBase
  numColumns : Number
[read-only] Defines the number of columns in the spritesheet, when in global mode.
ParticleSpriteSheetNode
  numRows : Number
[read-only] Defines the number of rows in the spritesheet, when in global mode.
ParticleSpriteSheetNode
 InheritedoneData : Vector.<Number>
[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.
ParticleNodeBase
 InheritedoriginalName : String
[read-only] The original name used for this asset in the resource (e.g.
NamedAssetBase
 Inheritedpriority : int
[read-only] Returns the priority of the particle animation node, used to order the agal generated in a particle animation set.
ParticleNodeBase
 InheritedstateClass : Class
[read-only]
AnimationNodeBase
  totalFrames : Number
[read-only] Defines the total number of frames used by the spritesheet, when in global mode.
ParticleSpriteSheetNode
Protected Properties
 PropertyDefined By
 Inherited_dataLength : uint = 3
ParticleNodeBase
 Inherited_mode : uint
ParticleNodeBase
 Inherited_oneData : Vector.<Number>
ParticleNodeBase
 Inherited_stateClass : Class
AnimationNodeBase
Public Methods
 MethodDefined By
  
ParticleSpriteSheetNode(mode:uint, usesCycle:Boolean, usesPhase:Boolean, numColumns:int = 1, numRows:uint = 1, cycleDuration:Number = 1, cyclePhase:Number = 0, totalFrames:uint)
Creates a new ParticleSpriteSheetNode
ParticleSpriteSheetNode
 Inherited
assetPathEquals(name:String, ns:String):Boolean
NamedAssetBase
 Inherited
dispose():void
Cleans up resources used by this asset.
AnimationNodeBase
 Inherited
getAGALFragmentCode(pass:MaterialPassBase, animationRegisterCache:AnimationRegisterCache):String
Returns the AGAL code of the particle animation node for use in the fragment shader.
ParticleNodeBase
  
getAGALUVCode(pass:MaterialPassBase, animationRegisterCache:AnimationRegisterCache):String
[override] Returns the AGAL code of the particle animation node for use in the fragment shader when UV coordinates are required.
ParticleSpriteSheetNode
 Inherited
getAGALVertexCode(pass:MaterialPassBase, animationRegisterCache:AnimationRegisterCache):String
Returns the AGAL code of the particle animation node for use in the vertex shader.
ParticleNodeBase
  
ParticleSpriteSheetNode
 Inherited
resetAssetPath(name:String, ns:String = null, overrideOriginal:Boolean = true):void
NamedAssetBase
Public Constants
 ConstantDefined By
 InheritedDEFAULT_NAMESPACE : String = default
[static]
NamedAssetBase
  UV_VECTOR3D : String = UVVector3D
[static] Reference for spritesheet node properties on a single particle (when in local property mode).
ParticleSpriteSheetNode
Property Detail
numColumnsproperty
numColumns:Number  [read-only]

Defines the number of columns in the spritesheet, when in global mode. Defaults to 1. Read only.


Implementation
    public function get numColumns():Number
numRowsproperty 
numRows:Number  [read-only]

Defines the number of rows in the spritesheet, when in global mode. Defaults to 1. Read only.


Implementation
    public function get numRows():Number
totalFramesproperty 
totalFrames:Number  [read-only]

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.


Implementation
    public function get totalFrames():Number
Constructor Detail
ParticleSpriteSheetNode()Constructor
public function ParticleSpriteSheetNode(mode:uint, usesCycle:Boolean, usesPhase:Boolean, numColumns:int = 1, numRows:uint = 1, cycleDuration:Number = 1, cyclePhase:Number = 0, totalFrames:uint)

Creates a new ParticleSpriteSheetNode

Parameters
mode:uint — Defines whether the mode of operation acts on local properties of a particle or global properties of the node.
 
usesCycle:Boolean — numColumns Defines the number of columns in the spritesheet, when in global mode. Defaults to 1.
 
usesPhase:Boolean — numRows Defines the number of rows in the spritesheet, when in global mode. Defaults to 1.
 
numColumns:int (default = 1) — cycleDuration Defines the default cycle duration in seconds, when in global mode. Defaults to 1.
 
numRows:uint (default = 1) — cyclePhase Defines the default cycle phase, when in global mode. Defaults to 0.
 
cycleDuration:Number (default = 1) — totalFrames Defines the total number of frames used by the spritesheet, when in global mode. Defaults to the number defined by numColumns and numRows.
 
cyclePhase:Number (default = 0) — looping Defines whether the spritesheet animation is set to loop indefinitely. Defaults to true.
 
totalFrames:uint (default = NaN)
Method Detail
generatePropertyOfOneParticle()method
override arcane function generatePropertyOfOneParticle(param:ParticleProperties):void

Called internally by the particle animation set when assigning the set of static properties originally defined by the initParticleFunc of the set.

Parameters

param:ParticleProperties

getAGALUVCode()method 
override public function getAGALUVCode(pass:MaterialPassBase, animationRegisterCache:AnimationRegisterCache):String

Returns the AGAL code of the particle animation node for use in the fragment shader when UV coordinates are required.

Parameters

pass:MaterialPassBase
 
animationRegisterCache:AnimationRegisterCache

Returns
String
getAnimationState()method 
public function getAnimationState(animator:IAnimator):ParticleSpriteSheetState

Parameters

animator:IAnimator

Returns
ParticleSpriteSheetState
processAnimationSetting()method 
override arcane function processAnimationSetting(particleAnimationSet:ParticleAnimationSet):void

Called internally by the particle animation set when determining the requirements of the particle animation node AGAL.

Parameters

particleAnimationSet:ParticleAnimationSet

Constant Detail
UV_VECTOR3DConstant
public static const UV_VECTOR3D:String = UVVector3D

Reference for spritesheet node properties on a single particle (when in local property mode). Expects a Vector3D representing the cycleDuration (x), optional phaseTime (y).