Static Method Summary
Static Public Methods | ||
public static |
Creates a Life initializer from JSON. |
Constructor Summary
Public Constructor | ||
public |
constructor(min: number, max: number, center: boolean, isEnabled: boolean): * Constructs a Life property instance. |
Method Summary
Public Methods | ||
public |
initialize(particle: Particle): * Sets the particle's initial life. |
Inherited Summary
From class Initializer | ||
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. |
|
public |
isEnabled: * |
|
public |
type: * |
|
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 static fromJSON(json: object): Life source
Creates a Life initializer from JSON.
Override:
Initializer#fromJSONParams:
Name | Type | Attribute | Description |
json | object | The JSON to construct the instance from. |
|
json.min | number | The minimum life time |
|
json.max | number | The maximum life time |
|
json.center | number | The center of the life time |
|
json.isEnabled | boolean |
|
Determines if the initializer should be enabled or not |
Public Constructors
Public Methods
public initialize(particle: Particle): * source
Sets the particle's initial life.
Override:
Initializer#initializeParams:
Name | Type | Attribute | Description |
particle | Particle | the particle to initialize the property on |
Return:
* | void |