/Engine/Source/Editor/UnrealEd/Classes/Editor/EditorEngine.h
Queries for a list of assets that are referenced by the current editor selection (actors, surfaces, etc.)
void GetReferencedAssetsForEditorSelection ( [TArray](API\Runtime\Core\Containers\TArray)< [UObject](API\Runtime\CoreUObject\UObject\UObject) * > & Objects, const bool bIgnoreOtherAssetsIfBPReferenced )