# StatusEffect

### Description

[StatusEffects](statuseffect) contain the [StatusEffectData](../scriptable-objects/statuseffectdata), timing, duration, and stack count.

### Properties

<table data-full-width="true"><thead><tr><th width="250">Name</th><th width="250">Type</th><th>Description</th></tr></thead><tbody><tr><td><code>Data</code></td><td><a href="../scriptable-objects/statuseffectdata">StatusEffectData</a></td><td>The <a href="../scriptable-objects/statuseffectdata">StatusEffectData</a> reference.</td></tr><tr><td><code>Timing</code></td><td>StatusEffectTiming</td><td>A StatusEffectTiming enum that designates the timing of the effect (Duration, Infinite, Event, Predicate)</td></tr><tr><td><code>Duration</code></td><td>float</td><td>How long the effect will last. This may be in seconds but can also be tied to other events.</td></tr><tr><td><code>Stack</code></td><td>int</td><td>The int value count of how many stacks of the effect there are.</td></tr></tbody></table>

### Actions

<table data-full-width="true"><thead><tr><th width="250">Name</th><th>Description</th></tr></thead><tbody><tr><td><code>Started</code></td><td>Invoked when the effect starts.</td></tr><tr><td><code>Stopped</code></td><td>Invoked when the effect stops.</td></tr><tr><td><code>OnDurationUpdate</code></td><td>Invoked when the duration value is changed.</td></tr><tr><td><code>OnStackUpdate</code></td><td>Invoked when the stack value is changed</td></tr></tbody></table>
