A particle animation node used to control the scale variation of a particle over time.

Static variables

@:value("ScaleVector3D")staticinlineread onlySCALE_VECTOR3D:String = "ScaleVector3D"

Reference for scale node properties on a single particle (when in local property mode). Expects a Vector3D representing the min scale (x), max scale(y), optional cycle speed (z) and phase offset (w) applied to the particle.

Constructor

@:value({ cyclePhase : 0, cycleDuration : 1, maxScale : 1, minScale : 1 })new(mode:Int, usesCycle:Bool, usesPhase:Bool, minScale:Float = 1, maxScale:Float = 1, cycleDuration:Float = 1, cyclePhase:Float = 0)

Creates a new ParticleScaleNode

Parameters:

mode

Defines whether the mode of operation acts on local properties of a particle or global properties of the node.

[optional]

usesCycle Defines whether the node uses the cycleDuration property in the shader to calculate the period of animation independent of particle duration. Defaults to false.

[optional]

usesPhase Defines whether the node uses the cyclePhase property in the shader to calculate a starting offset to the animation cycle. Defaults to false.

[optional]

minScale Defines the default min scale transform of the node, when in global mode. Defaults to 1.

[optional]

maxScale Defines the default max color transform of the node, when in global mode. Defaults to 1.

[optional]

cycleDuration Defines the default duration of the animation in seconds, used as a period independent of particle duration when in global mode. Defaults to 1.

[optional]

cyclePhase Defines the default phase of the cycle in degrees, used as the starting offset of the cycle when in global mode. Defaults to 0.

Methods

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