Skip to main content

DissipateToolBasedEffect

A class in Root.Township, the global namespace.

Tool-based effect that fades its material's _Progress from 1 to 0 over a set time, then cleans up and returns to the pool.

Constructors​

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

Fields​

1 private and internal field
MemberWhat it is
private float animationDurationSeconds the fade takes.

Methods​

MemberWhat it is
protected override IEnumerator Animate(bool isIn) (iterator)Fades the progress down over animationDuration, then releases. The direction argument is ignored.