# GetStatusEffects

### Declaration

public static List<[StatusEffect](/status-effect-framework/1.2.0/type-specifics/classes/statuseffect.md)> **GetStatusEffects**(string? group = null, string? name = null)

### Parameters

<table data-header-hidden data-full-width="false"><thead><tr><th width="224"></th><th></th></tr></thead><tbody><tr><td>group</td><td>The group to select in the effect list.</td></tr><tr><td>name</td><td>The name of the effect to select in the effect list.</td></tr></tbody></table>

### Returns

**List<**[**StatusEffect**](/status-effect-framework/1.2.0/type-specifics/classes/statuseffect.md)**>** Returns a list of all status effects on the [MonoBehaviour](https://docs.unity3d.com/ScriptReference/MonoBehaviour.html).

### Description

Searches a given [MonoBehaviour](https://docs.unity3d.com/ScriptReference/MonoBehaviour.html) for an effect list. If a group or name string is given then only effects with the same group name or effect name will be selected.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://maraudical.gitbook.io/status-effect-framework/1.2.0/type-specifics/classes/statusmanager/getstatuseffects.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
