Get actors from different streaming levels in persistent level

Hi

I want to get actors from different streaming levels in my game , in the persistent level.

“Get all Actors from class” only works within a particular level. I want to access actors of some other level e.g. Coins present in different streaming levels of my game.

How can I achieve this?

Any inputs will be helpful.

Thanks

AB

FString UR1NodesBPLibrary::GetLevelFromActor(class AActor* TestActor)
{

	if (Cast<ULevel>(TestActor))
		return "";

	FString actorLevel = TestActor->GetOuter()->GetFullGroupName(true);
		
	return actorLevel;
}