| Package | org.flintparticles.threeD.papervision3d.initializers |
| Class | public class ApplyMaterial |
| Inheritance | ApplyMaterial InitializerBase Object |
This initializer has a priority of -10 to ensure that it is applied after the ImageInit classes which define the image object.
| 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 | ||
![]() | priority : int
Returns a default priority of 0 for this action. | InitializerBase | |
| 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 | |
[override]
This method does nothing. | ApplyMaterial | ||
![]() | removedFromEmitter(emitter:Emitter):void
This method does nothing. | InitializerBase | |
| materialClass | property |
materialClass:ClassThe class to use when creating the particles' material.
public function get materialClass():Class public function set materialClass(value:Class):void| parameters | property |
parameters:ArrayThe parameters to pass to the constructor for the material class.
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
| initialize | () | method |
override public function initialize(emitter:Emitter, particle:Particle):voidThis method does nothing. All derived classes override this method to initialize each particle created by the emitter.
Parameters
emitter:Emitter | |
particle:Particle |