Auto Add Actors to World Layers

Hi!

In UE3 there was a way to make certain actors be automatically placed in layers in the world by editing their Default Properties, is there a way to set this in UE4 via code?

I want to add all lighting actors automatically into a Lighting folder in the world outliner.

Thanks!
Chris

Hey Chris,

Unfortauntely there’s no way to achieve this currently. If you wanted to modify your build however, you could change AActor::FolderPath to be protected, and set FolderPath in the constructor for ALight, for instance, to “Lights”.

I’d expect that to work out ok, if you wanted to give it a shot?

That worked! Thanks!