Skip to main content

ValueOperatedParticleSystem

A class in Root.Township, the global namespace.

Drives a particle system's playback speed or emission rates from one 0 to 1 value through curves. Client only; does nothing on a headless server.

Constructors​

MemberWhat it is
ValueOperatedParticleSystem()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Fields​

2 private and internal fields
MemberWhat it is
private ValueOperatedParticleSystem.ParticleSystemValueOperatorDefinition[] operatorsThe values to drive and their curves.
private ParticleSystem targetSystemThe particle system to change.

Methods​

MemberWhat it is
void SetValue(float value)Client: passes the value to every operator, which maps it through its curve and applies it.
1 private and internal method
MemberWhat it is
private void Awake()Client: sets up each operator on the target system.

Used in​

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