> ## Documentation Index
> Fetch the complete documentation index at: https://xrlive.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Register Visual Effect

> Register a Niagara component for automatic cleanup

## Blueprint node

**Category:** `XRLIVE | ACTORS`

Registers a `UNiagaraComponent` to be deactivated and destroyed when the visual closes. Use this for any looping or persistent Niagara effect that should not outlive the visual.

| Pin      | Type                 | Description                       |
| -------- | -------------------- | --------------------------------- |
| `Effect` | `UNiagaraComponent*` | The Niagara component to register |

## Example

```
Event BeginPlay
    ↓
Spawn System Attached (NS_Particles, AttachToComponent: ...)
    ↓
Register Visual Effect
    Effect: [return value]
```

## Notes

* One-shot effects with **Auto Destroy** enabled clean themselves up and don't need to be registered.
* Register any effect that is **looping** or has **Auto Destroy disabled**.
* On visual close: `Deactivate()` is called first, then `DestroyComponent()`.
