UUnrealEdEngine::CanDeleteSelectedActors

Iterate over all levels of the world and create a list of world infos, then Iterate over selected actors and assemble a list of actors which can be deleted.