# Why are destroyed actors in the scene outliner?

**URL:** <https://forums.unrealengine.com/t/why-are-destroyed-actors-in-the-scene-outliner/283444>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [May 15, 2014, 11:34pm UTC](https://forums.unrealengine.com/t/why-are-destroyed-actors-in-the-scene-outliner/283444 "2014-05-15T23:34:12Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kochab](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kochab](https://forums.unrealengine.com/u/Kochab)\
**Post date:** [May 15, 2014, 11:34pm UTC](https://forums.unrealengine.com/t/why-are-destroyed-actors-in-the-scene-outliner/283444/1 "2014-05-15T23:34:12Z")

</div>

I have 2 projectile types, one for the player and one for the enemy. When I shoot projectiles with the player they are destroyed after 1 second. They show up in the scene outliner and then after 1 second they are completely gone. The actor count in the scene will climb up to a higher number and then when the projectiles are destroyed, the actor count will drop back to where it was.

With enemy projectiles, on the other hand, when they are destroyed they leave behind a “deleted actor” in the scene outliner. Another weird thing is that half the spawned projectiles seem to just go away while the other half leave behind this “deleted actor”. The actor count just climbs into the thousands eventually.

Both projectiles are using “initial lifespan” in the class blueprint defaults to set their lifespans.

What could be causing these differences and are these “deleted actors” still being referenced in memory?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_dede2580](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_dede2580](https://forums.unrealengine.com/u/anonymous_user_dede2580)\
**Post date:** [May 16, 2014, 8:34am UTC](https://forums.unrealengine.com/t/why-are-destroyed-actors-in-the-scene-outliner/283444/2 "2014-05-16T08:34:42Z")

</div>

Do both projectile types use the same Blueprint, or do you have one for player projectiles and another one for enemy projectiles?

---

<div class="post-metadata">

**Author:** ![Kochab](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kochab](https://forums.unrealengine.com/u/Kochab)\
**Post date:** [May 16, 2014, 4:43pm UTC](https://forums.unrealengine.com/t/why-are-destroyed-actors-in-the-scene-outliner/283444/3 "2014-05-16T16:43:27Z")

</div>

They use a different blueprint, but both use the same nodes. I just use a different way of spawning them. The player’s projectile is routed through its weapon blueprint, whereas the enemy projectile is fired through a bullet spawner in the level. Even if I take the bullet spawner out and just put the logic in the enemy, the same thing happens.

---

<div class="post-metadata">

**Author:** ![Nadege\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nadege\_1](https://forums.unrealengine.com/u/Nadege_1)\
**Post date:** [May 26, 2014, 11:19am UTC](https://forums.unrealengine.com/t/why-are-destroyed-actors-in-the-scene-outliner/283444/4 "2014-05-26T11:19:48Z")

</div>

I have a similar issue (scene outliner full of ‘deleted actor’) and like you not all actors spawned leave this behind.  
I spawn them with GetWorld()-\>SpawnActor and later I call Destroy() on them.

I don’t know why 😕

---

<div class="post-metadata">

**Author:** ![Zeustiak](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Zeustiak](https://forums.unrealengine.com/u/Zeustiak)\
**Post date:** [May 26, 2014, 11:31am UTC](https://forums.unrealengine.com/t/why-are-destroyed-actors-in-the-scene-outliner/283444/5 "2014-05-26T11:31:25Z")

</div>

Are you storing them in a variable? If so try clearing the variable to see if that makes them disappear.

---

<div class="post-metadata">

**Author:** ![Elendil](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Elendil](https://forums.unrealengine.com/u/Elendil)\
**Post date:** [July 2, 2014, 12:29pm UTC](https://forums.unrealengine.com/t/why-are-destroyed-actors-in-the-scene-outliner/283444/6 "2014-07-02T12:29:20Z")

</div>

Have you found a solution and a reason ?

---

<div class="post-metadata">

**Author:** ![Tim\_Hobson](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tim\_Hobson](https://forums.unrealengine.com/u/Tim_Hobson)\
**Post date:** [July 7, 2014, 5:36pm UTC](https://forums.unrealengine.com/t/why-are-destroyed-actors-in-the-scene-outliner/283444/7 "2014-07-07T17:36:41Z")

</div>

Hi Elendil,

I’m attempting to replicate this but have not be able to. If you are able to get this to happen can you post you’re exact setup with detail repro steps in a new level. The simplest variation to replicate will do.

Feel free to post any images or video that would help in replicating this faster.

Thank you!

Tim

---

<div class="post-metadata">

**Author:** ![joessu](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@joessu](https://forums.unrealengine.com/u/joessu)\
**Post date:** [July 7, 2014, 5:58pm UTC](https://forums.unrealengine.com/t/why-are-destroyed-actors-in-the-scene-outliner/283444/8 "2014-07-07T17:58:54Z")

</div>

Huh, i saw this all the time in my current project but just assumed it had something to do with the undo system.

---

<div class="post-metadata">

**Author:** ![Elendil](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Elendil](https://forums.unrealengine.com/u/Elendil)\
**Post date:** [July 7, 2014, 9:34pm UTC](https://forums.unrealengine.com/t/why-are-destroyed-actors-in-the-scene-outliner/283444/9 "2014-07-07T21:34:12Z")

</div>

Hi and thanks for the help.  
In fact my problem is not with blueprint.  
I had the same problem but with actor spawned in C++. I don’t know why but i didn’t have this problem anymore.  
Thanks anyway 😉

---

<div class="post-metadata">

**Author:** ![Tim\_Hobson](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tim\_Hobson](https://forums.unrealengine.com/u/Tim_Hobson)\
**Post date:** [July 8, 2014, 3:27pm UTC](https://forums.unrealengine.com/t/why-are-destroyed-actors-in-the-scene-outliner/283444/10 "2014-07-08T15:27:03Z")

</div>

I know you’re not the OP but since you were the last to post as having the issue, I’m going to mark this as resolved. If the issue arises again and can be reproduced in something like BPs where I can test it please let me know.

If this ends up being a bug with something being left behind in the scene outliner it should be able to be replicated with BPs as well.

Thank you!

Tim

---

<div class="post-metadata">

**Author:** ![Elendil](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Elendil](https://forums.unrealengine.com/u/Elendil)\
**Post date:** [July 9, 2014, 10:09am UTC](https://forums.unrealengine.com/t/why-are-destroyed-actors-in-the-scene-outliner/283444/11 "2014-07-09T10:09:44Z")

</div>

Ok thanks. If the problem comes back, I’ll tell you 😉

---

<div class="post-metadata">

**Author:** ![ZoltanE](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ZoltanE](https://forums.unrealengine.com/u/ZoltanE)\
**Post date:** [August 13, 2014, 8:48am UTC](https://forums.unrealengine.com/t/why-are-destroyed-actors-in-the-scene-outliner/283444/12 "2014-08-13T08:48:44Z")

</div>

I’m having the same issue, in a few minutes of shooting there are hundreds of deleted actors.

Here is what’s happening (all BP): On each shot an Effect actor is created which creates and destroys a decal actor and a particle system actor then deletes itself too. The deleted actors in the scene outliner correspond to the decal and psys actors, the Effect instance which managed them is gone for good.  
I made sure that after the decal/particle is destroyed I clear their respective variables in Effect.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_9e06a9391](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_9e06a9391](https://forums.unrealengine.com/u/anonymous_user_9e06a9391)\
**Post date:** [November 26, 2014, 3:24am UTC](https://forums.unrealengine.com/t/why-are-destroyed-actors-in-the-scene-outliner/283444/13 "2014-11-26T03:24:14Z")

</div>

Hi. I have a reproduction case for this issue, and I’ve made a small project to demonstrate it. It was affecting a different project I was working on quite badly, with thousands of “(Deleted Actor)” entries in the list and causing huge stalls every few frames.

This is a link to the project, for 4.5.1 (also works in 4.6.0 preview): [http://expiredpopsicle.com/tmp/LeakTest.zip](http://expiredpopsicle.com/tmp/LeakTest.zip)

There are two blueprints and a level blueprint.

First, there is a Projectile actor that has this code:

 ![22212-projectile.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/0/4/904fe2c3639e1b00149f0d46af568b785292b7c6.png)

It has a single static mesh component, with a starter content Shape\_Sphere mesh, collision disabled (“NoCollision”), and “Generate Overlap Events” disabled. It has a lifespan set to 1 second, but I have also tried using Begin Play → Delay (1 second) → Destroy (Self). Same behavior on both methods.

There is a Shooter actor that has this code:

 ![22213-spawner.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/d/4/2d422403fd41aa110d033d75d13173ea1dc3f071.png)

It has a single static mesh component, which is set to the starter content Shape\_Cube. It also has collision disabled and “Generate Overlap Events” disabled. In addition to the code shown, I have also tried spawning with a looping timeline. In the other project that was also exhibiting the issue, things were getting spawned in C++ code. All of these exhibited the same behavior.

The level I set up has 30 instances of the Shooter objects arranged in rows of five.

With this setup, playing in the editor and waiting for a few seconds (about 10?), the Scene Outliner will begin to fill up with “(Deleted Actor)” instances. In the column field it says “Edit Projectile” for roughly half of them.

To demonstrate that these objects are staying in the list, even long after the spawning has stopped, I added a trigger volume in the level, and hooked it up to this in the level blueprint:

 ![22214-levelbp.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/3/6/6368b4a10b04e9fc3a393ddc5bb74aaf348f9fd5.png)

With this, we can see that the objects stay in the list forever, even after all the actors are gone.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_9e06a9391](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_9e06a9391](https://forums.unrealengine.com/u/anonymous_user_9e06a9391)\
**Post date:** [November 27, 2014, 1:09pm UTC](https://forums.unrealengine.com/t/why-are-destroyed-actors-in-the-scene-outliner/283444/14 "2014-11-27T13:09:02Z")

</div>

Just an update. I went ahead and chased this down myself. I submitted a pull request with a fix. [https://github.com/EpicGames/UnrealEngine/pull/638](https://github.com/EpicGames/UnrealEngine/pull/638)

---

<div class="post-metadata">

**Author:** ![Elendil](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Elendil](https://forums.unrealengine.com/u/Elendil)\
**Post date:** [November 27, 2014, 3:13pm UTC](https://forums.unrealengine.com/t/why-are-destroyed-actors-in-the-scene-outliner/283444/15 "2014-11-27T15:13:56Z")

</div>

Cool thanks for that 😉

---

<div class="post-metadata">

**Author:** ![Kochab](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kochab](https://forums.unrealengine.com/u/Kochab)\
**Post date:** [November 27, 2014, 4:38pm UTC](https://forums.unrealengine.com/t/why-are-destroyed-actors-in-the-scene-outliner/283444/16 "2014-11-27T16:38:23Z")

</div>

Nice work!

---

<div class="post-metadata">

**Author:** ![Br\_P\_d](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/br_p_d/32/918657_2.png) [@Br\_P\_d](https://forums.unrealengine.com/u/Br_P_d)\
**Post date:** [December 15, 2014, 3:40pm UTC](https://forums.unrealengine.com/t/why-are-destroyed-actors-in-the-scene-outliner/283444/17 "2014-12-15T15:40:02Z")

</div>

Hi there! As ExpiredPopsicle mentions in his PR, this is caused by some erroneous assumptions in the scene outliner code that attempts to remove dead actors from the outliner tree.

There has been significant effort for the upcoming 4.7 release on the Scene Outliner, and we hope that it now functions more responsively and robustly, particularly when dealing with the sorts of issues as are being raised here.

To test this thoroughly I’ve made a level that spawns many hundreds of actors and deletes them both instantly, and after a delay. Whilst I see some short-lived (Deleted Actor) entries, they never persist past the regular scene outliner updates (it updates every second or so during PIE).

Of course, if this continues to persist, even in 4.7, please let us know so we can investigate further.

---

<div class="post-metadata">

**Author:** ![joessu](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@joessu](https://forums.unrealengine.com/u/joessu)\
**Post date:** [July 15, 2015, 4:25am UTC](https://forums.unrealengine.com/t/why-are-destroyed-actors-in-the-scene-outliner/283444/18 "2015-07-15T04:25:53Z")

</div>

This is not fixed for me, i am using 4.8…

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2fa582561](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2fa582561](https://forums.unrealengine.com/u/anonymous_user_2fa582561)\
**Post date:** [March 4, 2016, 1:11am UTC](https://forums.unrealengine.com/t/why-are-destroyed-actors-in-the-scene-outliner/283444/19 "2016-03-04T01:11:55Z")

</div>

I am creating a real-time tile based map generator and been hitting this error when removing old tiles, the issue is, I need to use an array variable referencing to the actors in order to destroy them in the first place so I cant clear my references before deleting… what I can do is clear after, however this doesn’t seem to work…

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2fa582561](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2fa582561](https://forums.unrealengine.com/u/anonymous_user_2fa582561)\
**Post date:** [March 4, 2016, 1:26am UTC](https://forums.unrealengine.com/t/why-are-destroyed-actors-in-the-scene-outliner/283444/20 "2016-03-04T01:26:11Z")

</div>

Is there a was I can just disable whatever it is that stops referenced actors being destroyed? For my project I wish for all destroyed actors to be DESTROYED!!! can I set this setting somewhere in my project or engine code? I would prefigure an occasional crash due to a reference mes up than it not functioning at all due to an overload of un deleted “deleted actors”
