ParticleSystemControl Class
Namespace: Stride.Particles.ComponentsAssembly: Stride.Particles.dll
Edit-time controls for the ParticleSystemComponent
[DataContract("ParticleSystemControl")]
public class ParticleSystemControl
Name | Description | |
---|---|---|
Properties | ||
Control | State control used to Play, Pause or Stop the ParticleSystem |
|
ResetSeconds | Resets the ParticleSystem every X seconds, starting the simulation over again. Setting it to 0 means the particle system won't be resetted |
|
ThumbnailWarmupTime | Warm-up time is the amount of time the system should spend in background pre-simulation when capturing the thumbnail |
|
Methods | ||
Update(Single, ParticleSystem) | Update the control with delta time. It will pause or restart the ParticleSystem if necessary |
Properties
Control
State control used to Play, Pause or Stop the ParticleSystem
[DataMember(30)]
public StateControl Control { get; set; }
Property Value
Type | Description |
---|---|
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
Type | Description |
---|---|
System.Single |
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
Type | Description |
---|---|
System.Single |
Methods
Update(Single, ParticleSystem)
Update the control with delta time. It will pause or restart the ParticleSystem if necessary
public void Update(float dt, ParticleSystem particleSystem)
Parameters
Type | Name | Description |
---|---|---|
System.Single | dt | Delta time elapsed since the last update call |
ParticleSystem | particleSystem | The ParticleSystem which this control should manage |