| Package | org.flintparticles.threeD.papervision3d.initializers |
| Class | public class ApplyMaterial |
| Inheritance | ApplyMaterial InitializerBase |
| Property | Defined by | ||
|---|---|---|---|
| materialClass : Class
The class to use when creating the particles' material.
| ApplyMaterial | ||
| parameters : Array
The parameters to pass to the constructor
for the material class.
| ApplyMaterial | ||
| Method | Defined by | ||
|---|---|---|---|
|
ApplyMaterial(materialClass:Class, ... parameters)
The constructor creates an ApplyMaterial initializer for use by
an emitter.
| ApplyMaterial | ||
![]() |
addedToEmitter(emitter:Emitter):void
This method does nothing.
| InitializerBase | |
|
getDefaultPriority():Number
Returns -10 to ensure that the ApplyMaterial is applied after the
ImageInit classes which define the image object.
| ApplyMaterial | ||
|
This method does nothing.
| ApplyMaterial | ||
![]() |
removedFromEmitter(emitter:Emitter):void
This method does nothing.
| InitializerBase | |
| materialClass | property |
materialClass:Class [read-write]The class to use when creating the particles' material.
Implementation public function get materialClass():Class
public function set materialClass(value:Class):void
| parameters | property |
parameters:Array [read-write]The parameters to pass to the constructor for the material class.
Implementation public function get parameters():Array
public function set parameters(value:Array):void
| ApplyMaterial | () | constructor |
public function ApplyMaterial(materialClass:Class, ... parameters)The constructor creates an ApplyMaterial initializer for use by an emitter. To add an ApplyMaterial to all particles created by an emitter, use the emitter's addInitializer method.
ParametersmaterialClass:Class — The class to use when creating
the particles' material.
|
|
... parameters — The parameters to pass to the constructor
for the material class.
|
See also
| getDefaultPriority | () | method |
public override function getDefaultPriority():NumberReturns -10 to ensure that the ApplyMaterial is applied after the ImageInit classes which define the image object.
ReturnsNumber |
| initialize | () | method |
public override function initialize(emitter:Emitter, particle:Particle):voidThis method does nothing. All derived classes override this method to initialize each particle created by the emitter.
Parametersemitter:Emitter |
|
particle:Particle |