AssetViewUtils::LoadAssetsIfNeeded

Makes sure the specified assets are loaded into memory.

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::LoadAssetsIfNeeded  
    (  
        const [TArray](API\Runtime\Core\Containers\TArray)< [FString](API\Runtime\Core\Containers\FString) > & ObjectPaths,  
        [TArray](API\Runtime\Core\Containers\TArray)< [UObject](API\Runtime\CoreUObject\UObject\UObject) * > & LoadedObjects,  
        bool bAllowedToPromptToLoadAssets,  
        bool bLoadRedirects  
    )  
}  

Remarks

Makes sure the specified assets are loaded into memory. false if user canceled after being warned about loading very many packages.

Parameters

Name Description
ObjectPaths The paths to the objects to load.
LoadedObjects The returned list of objects that were already loaded or loaded by this method.

Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library