SpawnActor and organizing the world outliner

Hi

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

77208-ue_qest.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

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.

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

77243-addchildactorcomponent.png

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

77246-worldoutliner.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.

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?

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).

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.

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.

1 Like

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