Table of Contents

Class ParticleSystemControl

Namespace
Stride.Particles.Components
Assembly
Stride.Particles.dll

Edit-time controls for the ParticleSystemComponent

[DataContract("ParticleSystemControl")]
public class ParticleSystemControl
Inheritance
ParticleSystemControl

Properties

Control

State control used to Play, Pause or Stop the ParticleSystem

[DataMember(30)]
public StateControl Control { get; set; }

Property Value

StateControl

ResetSeconds

Resets the ParticleSystem every X seconds, starting the simulation over again. Setting it to 0 means the particle system won't be resetted

[DataMember(20)]
[Display("Reset after (seconds)", null)]
public float ResetSeconds { get; set; }

Property Value

float

ThumbnailWarmupTime

Warm-up time is the amount of time the system should spend in background pre-simulation when capturing the thumbnail

[DataMember(40)]
[Display("Thumbnail Warm-up", null)]
[DataMemberRange(0, 5, 0.01, 1, 3)]
public float ThumbnailWarmupTime { get; set; }

Property Value

float

Methods

Update(float, ParticleSystem)

Update the control with delta time. It will pause or restart the ParticleSystem if necessary

public void Update(float dt, ParticleSystem particleSystem)

Parameters

dt float

Delta time elapsed since the last update call

particleSystem ParticleSystem

The ParticleSystem which this control should manage