A particle animation node used as the base node for timekeeping inside a particle. Automatically added to a particle animation set on instatiation.

Constructor

@:value({ usesDelay : false, usesLooping : false, usesDuration : false })new(usesDuration:Bool = false, usesLooping:Bool = false, usesDelay:Bool = false)

Creates a new ParticleTimeNode

Parameters:

[optional]

usesDuration Defines whether the node uses the duration data in the static properties function to determine how long a particle is visible for. Defaults to false.

[optional]

usesDelay Defines whether the node uses the delay data in the static properties function to determine how long a particle is hidden for. Defaults to false. Requires usesDuration to be true.

[optional]

usesLooping Defines whether the node creates a looping timeframe for each particle determined by the startTime, duration and delay data in the static properties function. Defaults to false. Requires usesLooping to be true.

Methods

getAGALVertexCode(pass:MaterialPassBase, animationRegisterCache:AnimationRegisterCache):String

@inheritDoc

Inherited Variables

Defined by ParticleNodeBase

read onlydataLength:Int

read onlymode:Int

read onlyoneData:Vector<Float>

read onlypriority:Int

Defined by AnimationNodeBase

Defined by NamedAssetBase

read onlyassetFullPath:Array<Dynamic>

read onlyassetNamespace:String

id:String

name:String

read onlyoriginalName:String

Inherited Methods

Defined by ParticleNodeBase

getAGALFragmentCode(pass:MaterialPassBase, animationRegisterCache:AnimationRegisterCache):String

Returns the AGAL code of the particle animation node for use in the fragment shader.

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.

Defined by AnimationNodeBase

dispose():Void

@inheritDoc

Defined by NamedAssetBase

assetPathEquals(name:String, ns:String):Bool

@:value({ overrideOriginal : true, ns : null })resetAssetPath(name:String, ?ns:String, overrideOriginal:Bool = true):Void