# SpawnActor and organizing the world outliner

**URL:** <https://forums.unrealengine.com/t/spawnactor-and-organizing-the-world-outliner/346345>\
**Category:** Blueprint\
**Tags:** outliner, world-outliner, unreal-engine, Blueprint, question\
**Created:** [February 4, 2016, 12:28am UTC](https://forums.unrealengine.com/t/spawnactor-and-organizing-the-world-outliner/346345 "2016-02-04T00:28:29Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![KrisRogos](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@KrisRogos](https://forums.unrealengine.com/u/KrisRogos)\
**Post date:** [February 4, 2016, 12:28am UTC](https://forums.unrealengine.com/t/spawnactor-and-organizing-the-world-outliner/346345/1 "2016-02-04T00:28:29Z")

</div>

Hi

I have a blueprint that creates a large number of nodes (based on another blueprint):

![77208-ue_qest.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/3/1/a31ed8aa6efce6cdedfe0cc5cc7425354228b4fa.png)

The thing is that there are 400 of them in my World Outliner, and about 20 units spawned in a similar way by another class.

![77209-ue_qest2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/f/0/8f010aa59ea839daa8205f7aca34ebc9826d95b2.png)

Is there an easy was to put all these objects into a folders or groups and have it all as just one entry on the list? It would make it much easier to have 4-5 folders one for each type of objects, ideally by having my generator/manager class group each of these objects, rather than a single collection of all the object.

---

<div class="post-metadata">

**Author:** ![JR4815](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JR4815](https://forums.unrealengine.com/u/JR4815)\
**Post date:** [February 4, 2016, 3:02am UTC](https://forums.unrealengine.com/t/spawnactor-and-organizing-the-world-outliner/346345/2 "2016-02-04T03:02:07Z")

</div>

you could spawn them as child actors using “Add Child Actor Component”

![77243-addchildactorcomponent.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/7/3/f735b1474a8450aed23aebdaffea2cdb6246a952.png)

The world outliner will group them as collapse-able children of the Actor

![77246-worldoutliner.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/c/c/ecc75fba1fb6d83427a4b03f9dedcd3e46f5e14a.png)

However, this will also chain the transforms together so to place them correctly you would have to spawn them relative  
to the spawning actor.

for manually placed objects there is also the “Group” option in the World Outliner context menu  
which will auto select all grouped objects when selected.

Please don’t forget to mark this as the answer to the question if it helped you out.

---

<div class="post-metadata">

**Author:** ![Ratamorph](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ratamorph](https://forums.unrealengine.com/u/Ratamorph)\
**Post date:** [July 3, 2016, 2:19pm UTC](https://forums.unrealengine.com/t/spawnactor-and-organizing-the-world-outliner/346345/3 "2016-07-03T14:19:47Z")

</div>

Is it possible to collapse the children under the parent after the parenting is done? Same as clicking the foldout triangle but from c++ or blueprint?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_49a519741](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_49a519741](https://forums.unrealengine.com/u/anonymous_user_49a519741)\
**Post date:** [August 7, 2017, 12:08am UTC](https://forums.unrealengine.com/t/spawnactor-and-organizing-the-world-outliner/346345/4 "2017-08-07T00:08:48Z")

</div>

Unless there is a way to get exposed public variables to show up on the “Add Child Actor Component” node then this isn’t a sufficient substitution. I’d love to be wrong that it’s still not a feature (I found discussions from 2014 about the deficiency).

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_49a519741](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_49a519741](https://forums.unrealengine.com/u/anonymous_user_49a519741)\
**Post date:** [August 7, 2017, 12:19am UTC](https://forums.unrealengine.com/t/spawnactor-and-organizing-the-world-outliner/346345/5 "2017-08-07T00:19:31Z")

</div>

I have a lot of actors being spawned and deleted and my World Outliner is unusable. I can’t scroll to the bottom in time to click an object before it resets to the top. There has to be a way to do this. It seems so fundamental.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_49a519741](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_49a519741](https://forums.unrealengine.com/u/anonymous_user_49a519741)\
**Post date:** [August 7, 2017, 1:35am UTC](https://forums.unrealengine.com/t/spawnactor-and-organizing-the-world-outliner/346345/6 "2017-08-07T01:35:25Z")

</div>

I found something in C++ that does the trick. Nothing in blueprints as far as I can see.

```
#if WITH_EDITOR
  actor->SetFolderPath("FolderName");
#endif

```

Someone should implement this as a blueprint node.

---

<div class="post-metadata">

**Author:** ![DionysosLai](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DionysosLai](https://forums.unrealengine.com/u/DionysosLai)\
**Post date:** [June 6, 2022, 7:19am UTC](https://forums.unrealengine.com/t/spawnactor-and-organizing-the-world-outliner/346345/7 "2022-06-06T07:19:52Z")

</div>

It work，but how can i collapse the folde path?
