Hello, I would like to know if it is possible to have a folder inside world outliner as a variable/array in c++ and if it is possible to iterate through it? I would like to be able to set everything inside a specific folder hidden in game and see if that helps performance any significant amount.
Hey Piilorasva
through this code you should be able to iterate through all actors which are currently in the Outliner.
TActorIterator< AActor > ActorItr = TActorIterator< AActor >(GetWorld());
while (ActorItr)
{
//... do stuff
++ActorItr;
}
Greetings
Is it possible to do the same in Blueprint?