Is it possible to find all of a game's ULevels at runtime?
I'm using level streaming exhaustively to break my game into smaller Levels, which I know are of the ULevel class, but ULevel extends UObject, not AActor, so GetAllActorsOfClass won't work in this case- is there an alternative function in the API that can run from the persistent level to return a TList of every single level in the game?
asked Jul 23 '15 at 12:16 AM in C++ Programming
You can use TObjectIterator to iterate for any arbitrary class of object in memory. However, that does have some performance implications so use wisely.
With that said, you can use GetWorld()->GetLevels() to return you the list of levels
answered Jul 23 '15 at 07:22 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here