Skip to content

1. How particles are treated in the engine

pamtdoh edited this page Dec 14, 2017 · 1 revision

What is a particle?

A particle consists of sprites that are emitted by an entity, the sprite emitted doesn't only stay in one location, but it can move in all directions that produces a nice effect. So basically a particle is a bunch of moving sprites emitted by an entity.

How to produce one?

The very basics to produce a particle is to have an entity with a particleEmitter, particleDataSprite and location component. What's nice to have is that all of the component can be specified first in a prefab, producing a particle is just as simple as spawning an entity.

Particle Effect Definition

Particle effects can be defined first as a prefab in assets/prefabs/particleEffects. The texture for the particle in assets/textures.

Clone this wiki locally