Table of Contents

Class UpdaterSizeOverTime

Namespace
Stride.Particles.Updaters
Assembly
Stride.Particles.dll

Updater which sets the particle's size to a fixed value sampled based on the particle's normalized life value

[DataContract("UpdaterSizeOverTime")]
[Display("Size Animation", null)]
public class UpdaterSizeOverTime : ParticleUpdater
Inheritance
UpdaterSizeOverTime
Inherited Members

Constructors

UpdaterSizeOverTime()

Default constructor which also registers the fields required by this updater

public UpdaterSizeOverTime()

Properties

IsPostUpdater

All updaters are called exactly once during each ParticleEmitter's update. Most updaters are called before spawning the new particles for the frame, but post updaters are called after that.

public override bool IsPostUpdater { get; }

Property Value

bool

SamplerMain

The main curve sampler. Particles will change their value based on the sampled values

[DataMember(100)]
[Display("Main", null)]
public ComputeCurveSampler<float> SamplerMain { get; set; }

Property Value

ComputeCurveSampler<float>

SamplerOptional

Optional sampler. If present, particles will pick a random value between the two sampled curves

[DataMember(200)]
[Display("Optional", null)]
public ComputeCurveSampler<float> SamplerOptional { get; set; }

Property Value

ComputeCurveSampler<float>

SeedOffset

Seed offset. You can use this offset to bind the randomness to other random values, or to make them completely unrelated

[DataMember(300)]
[Display("Random Seed", null)]
public uint SeedOffset { get; set; }

Property Value

uint

Methods

PreUpdate()

public override void PreUpdate()

Update(float, ParticlePool)

Updates all particles in the ParticlePool using this updater

public override void Update(float dt, ParticlePool pool)

Parameters

dt float

Delta time in seconds which has passed since the last update call

pool ParticlePool

The target ParticlePool which needs to be updated