> For the complete documentation index, see [llms.txt](https://maraudical.gitbook.io/status-effects-framework/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://maraudical.gitbook.io/status-effects-framework/type-specifics/classes/statusmanager/getstatuseffect.md).

# GetStatusEffect

### Declaration

{% code overflow="wrap" fullWidth="true" %}

```csharp
public bool GetStatusEffects(int instanceId, out StatusEffect statusEffect)
```

{% endcode %}

### Parameters

<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>instanceId</code></td><td><a href="https://docs.unity3d.com/ScriptReference/Hash128.html">Hash128</a></td><td>The <a href="https://docs.unity3d.com/ScriptReference/Hash128.html">Hash128</a> of the <a href="/pages/OpUFQnv9JKaTU0cxnlHw">StatusEffect</a> to search for.</td></tr><tr><td><code>statusEffect</code></td><td><a href="/pages/OpUFQnv9JKaTU0cxnlHw">StatusEffect</a></td><td>The <a href="/pages/OpUFQnv9JKaTU0cxnlHw">StatusEffect</a> found in the effect list. Returns null if none are found.</td></tr></tbody></table>

### Returns

**bool** Returns true when a [StatusEffect](/status-effects-framework/type-specifics/classes/statuseffect.md) with the given instance ID is found.

### Description

Searches this [StatusManager](/status-effects-framework/type-specifics/classes/statusmanager.md) for an effect with the given instance ID. If a [StatusEffect](/status-effects-framework/type-specifics/classes/statuseffect.md) isn't found the method will return false and output null.
