Following can be used to access actors from a Level Instance actor. This can be useful for example to use the parent level to control how the level instance’s actors behave for setting up unique gameplay for each instance.
See also: Important note on packaged builds in ALevelInstance actor in packaged and standalone builds
TArray<AActor*> Results;
LevelInstance->GetLevelInstanceSubsystem()->ForEachActorInLevelInstance(LevelInstance, [&Results](AActor* LevelActor)
{
Results.Emplace(LevelActor);
return true;
});