ParticleTimeline
Declaration
public class Strawberry.Graphics.ParticleSystem.ParticleTimeline
Timeline that updates particles using a sequence of affectors
Properties
AffectorCount
The number of affectors in this timeline
int AffectorCount { get }
Methods
AddAffector
Adds the given affector to this timeline
void AddAffector(IParticleAffector affector)
Parameters:
| Name | Type | Description |
|---|---|---|
affector |
Strawberry.Graphics.ParticleSystem.IParticleAffector |
The affector to add |
RemoveAffector
Removes the given affector from this timeline, if it exists
bool RemoveAffector(IParticleAffector affector)
Parameters:
| Name | Type | Description |
|---|---|---|
affector |
Strawberry.Graphics.ParticleSystem.IParticleAffector |
The affector to remove |
Returns: Returns true if the affector was removed
ClearAffectors
Removes all affectors from this timeline
void ClearAffectors()
Update
Updates the given particle using the timeline's affectors in order of addition to this timeline.
void Update(ref Particle particle, float dt)
Parameters:
| Name | Type | Description |
|---|---|---|
particle |
ref Strawberry.Graphics.ParticleSystem.Particle |
The particle to update |
dt |
System.Single |
The delta time |