Skip to main content

ValueOperatedParticleSystem.ParticleSystemValueOperatorDefinition

A private class in Root.Township, the global namespace. Reach it through att-stubs' publicized assemblies or Harmony's AccessTools.

Inspector entry pairing a particle system value with a curve. Builds the matching operator at startup.

Constructors​

MemberWhat it is
ParticleSystemValueOperatorDefinition()Creates a ValueOperatedParticleSystem.ParticleSystemValueOperatorDefinition with default values.

Fields​

3 private and internal fields
MemberWhat it is
private AnimationCurve curveCurve from the 0 to 1 input to the value written.
private ValueOperatedParticleSystem.ParticleSystemValue valueWhich particle system value to drive.
private ValueOperatedParticleSystem.ParticleSystemValueOperator valueOperatorThe operator created in Initialize.

Methods​

MemberWhat it is
void Initialize(ParticleSystem targetsystem)Creates the operator for the chosen value and points it at the particle system.
void Set(float value)Maps the input through the curve and applies it.

Used in​

Members of other types that take, return or hold a ParticleSystemValueOperatorDefinition: