AssetViewUtils::PrepareFoldersForDragDrop

A helper function for folder drag/drop which loads all assets in a path (including sub-paths) and returns the assets found

Unreal Engine C++ API Reference > Developer > AssetTools

References

   
Module AssetTools
Header /Engine/Source/Developer/AssetTools/Public/AssetViewUtils.h
Include #include "AssetViewUtils.h"
Source /Engine/Source/Developer/AssetTools/Private/AssetViewUtils.cpp
namespace AssetViewUtils  
{  
    bool AssetViewUtils::PrepareFoldersForDragDrop  
    (  
        const [TArray](API\Runtime\Core\Containers\TArray)< [FString](API\Runtime\Core\Containers\FString) > & SourcePathNames,  
        [TMap](API\Runtime\Core\Containers\TMap)< [FString](API\Runtime\Core\Containers\FString), [TArray](API\Runtime\Core\Containers\TArray)< [UObject](API\Runtime\CoreUObject\UObject\UObject) * > > & OutSourcePathToLoadedAssets  
    )  
}  

Remarks

A helper function for folder drag/drop which loads all assets in a path (including sub-paths) and returns the assets found

Parameters

Name Description
SourcePathNames The paths to the folders to drag/drop
OutSourcePathToLoadedAssets The map of source folder paths to assets found

Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library