# Beam particle system randomly disappears

**URL:** <https://forums.unrealengine.com/t/beam-particle-system-randomly-disappears/28699>\
**Category:** C++\
**Tags:** unreal-engine\
**Created:** [April 28, 2015, 9:41pm UTC](https://forums.unrealengine.com/t/beam-particle-system-randomly-disappears/28699 "2015-04-28T21:41:07Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Rama](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rama/32/882413_2.png) [@Rama](https://forums.unrealengine.com/u/Rama)\
**Post date:** [April 28, 2015, 11:44pm UTC](https://forums.unrealengine.com/t/beam-particle-system-randomly-disappears/28699/2 "2015-04-28T23:44:56Z")

</div>

**Garbage Collection Protection**

When you create your Beam PSC, make sure to store it in a global **UPROPERTY()** variable!

//.h file

```auto

UPROPERTY()
UParticleSystemComponent* m_beam_ps;

```

Otherwise your particle is getting **garbage collected**!

I have a wiki on UE4 Garbage Colleciton Here:

**Memory Management and GC in UE4**

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — ue4community.wiki! You will be able to find content from the official...

🙂

Rama

---

_[View the full topic](https://forums.unrealengine.com/t/beam-particle-system-randomly-disappears/28699)._
