Skip to content

Latest commit

 

History

History
51 lines (47 loc) · 1.53 KB

particletypedescriptions.md

File metadata and controls

51 lines (47 loc) · 1.53 KB

ParticleTypeDescriptions

The ParticleTypeDescriptions class provides a container for particle type descriptions.

Properties

Property Description
count

(get) count: number (set) (Not Available)

Retrieves the number of existing Particle Type Descriptions.

## Methods
Method Description
get

get(index: number): ParticleTypeDescription

Retrieves the particle type description at that index. The particle type descriptions specify which frames of the sprite sheet the particle should use. From scripting, the frames that the ParticleTypeDescription is using cannot be changed, but the user can change their percentages, i.e if there are 2 particle types, with percentages 0.5 each, the user can change from scripting to make one particle type more dense than the other by changing their fractions, for example to 0.3 and 0.7 respectively.