Initializer
Indirect Subclass:
The base Emitter / Particle property class.
Static Method Summary
Static Public Methods | ||
public static abstract |
Returns a new instance of the initializer from the JSON object passed. |
|
public static |
Determines if the initializer requires a Web GL API to be provided to its constructor. |
Constructor Summary
Public Constructor | ||
public |
constructor(type: string, isEnabled: boolean): * Constructs an Initializer instance. |
Method Summary
Public Methods | ||
public |
Initializes the property on the emitter or particle. |
|
public abstract |
initialize(target: object) Place custom property initialization code in this method in the subclass. |
|
public abstract |
reset() |
Static Public Methods
Public Constructors
Public Methods
public init(emitter: Emitter, particle: Particle): * source
Initializes the property on the emitter or particle.
Return:
* | void |
See:
- {@link '../emitter/emitter.js'} setupParticle
public abstract initialize(target: object) source
Place custom property initialization code in this method in the subclass.
Params:
Name | Type | Attribute | Description |
target | object | either an Emitter or a Particle |