/Engine/Source/Runtime/AssetRegistry/Public/AssetRegistry/IAssetRegistry.h
Returns true if the specified ClassName's ancestors could be found. If so, OutAncestorClassNames is a list of all its ancestors. This can be slow if temporary caching mode is not on
bool GetAncestorClassNames ( [FTopLevelAssetPath](API\Runtime\CoreUObject\UObject\FTopLevelAssetPath) ClassPathName, [TArray](API\Runtime\Core\Containers\TArray)< [FTopLevelAssetPath](API\Runtime\CoreUObject\UObject\FTopLevelAssetPath) > & OutAncestorClassNames ) const