Skip to main content

EmissionShapeControl

A class in Root.Township, the global namespace.

EmissionControl that can also scale the shape radius of its particle systems.

Constructors​

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

Fields​

1 private and internal field
MemberWhat it is
private float[] initialRadiiOriginal shape radius of each system.

Methods​

MemberWhat it is
void SetEmissionShapeRadius(float radiusMultiplier)Sets each system's shape radius to its original radius times the multiplier.
protected override void ResetSystems(PooledObject pooledObject)Resets like the base and puts the radius multiplier back to 1.
protected override void SetupSystems()Sets up like the base and records each system's original shape radius.