UContentBrowserAssetContextMenuContext::LoadSelectedObjectsIf

Loads the selected assets if the PredicateFilter returns true, and returns an array of the objects.

Unreal Engine C++ API Reference > Editor > ContentBrowser > UContentBrowserAssetContextMenuContext > LoadSelectedObjectsIf

References

   
Module ContentBrowser
Header /Engine/Source/Editor/ContentBrowser/Public/ContentBrowserMenuContexts.h
Include #include "ContentBrowserMenuContexts.h"
template<typename ExpectedAssetType>
[TArray](API\Runtime\Core\Containers\TArray)< ExpectedAssetType * > LoadSelectedObjectsIf
(
    [TFunctionRef](API\Runtime\Core\GenericPlatform\TFunctionRef)< bool(const [FAssetData](API\Runtime\CoreUObject\AssetRegistry\FAssetData) &AssetData)> PredicateFilter
) const

Remarks

Loads the selected assets if the PredicateFilter returns true, and returns an array of the objects.


Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library