World Outliner API for C++ interaction?

Hi,

I want to manipulate the World Outliner in my projects code. I have an Actor which is spawning a lot and it pollutes the World Outliner, so I want to create a folder in the World Outliner (via C++ code) to spawn these Actors inside it.

Another c++ usable approach would be appreaciated too.

Thanks.

I’m a little late, but I just found this one out.

AActor::SetFolderPath(const FName& NewFolderPath)