# Best way to spawn and keep track of decals

**URL:** <https://forums.unrealengine.com/t/best-way-to-spawn-and-keep-track-of-decals/490077>\
**Category:** Rendering\
**Tags:** expose-on-spawn, unreal-engine, Array, construction-script, Decals, question\
**Created:** [October 21, 2021, 3:57am UTC](https://forums.unrealengine.com/t/best-way-to-spawn-and-keep-track-of-decals/490077 "2021-10-21T03:57:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kwixb](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kwixb](https://forums.unrealengine.com/u/Kwixb)\
**Post date:** [October 21, 2021, 3:57am UTC](https://forums.unrealengine.com/t/best-way-to-spawn-and-keep-track-of-decals/490077/1 "2021-10-21T03:57:22Z")

</div>

I am working on an editor decal spawning tool but, I cannot find a way to keep track the decals I spawned in the construction script. My reason for wanting to keep track of them is because I don’t want them to destroy on their own. I tried adding the decals to an array after spawning but, the array does not fill correctly. What is the best way to spawn decals from a construction script and add them to an array if they need to be cleared?

 ![350709-array.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/0/9/30905cea1a875061f10cdf3b4299bff9c9a08ea4.png)

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [October 21, 2021, 10:03am UTC](https://forums.unrealengine.com/t/best-way-to-spawn-and-keep-track-of-decals/490077/2 "2021-10-21T10:03:02Z")

</div>

This looks ok, what’s going wrong with the array?

---

<div class="post-metadata">

**Author:** ![Kwixb](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kwixb](https://forums.unrealengine.com/u/Kwixb)\
**Post date:** [October 21, 2021, 4:55pm UTC](https://forums.unrealengine.com/t/best-way-to-spawn-and-keep-track-of-decals/490077/3 "2021-10-21T16:55:29Z")

</div>

So, if I look at the array in the details panel, I can see that it does not populate correctly. This also means that the decals cannot be deleted until I reload the map.

 ![350765-decals.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/b/1/fb1ae9f0d06dd999ff1374f3fce2648d060e994f.jpeg)
