AssetViewUtils::LoadAssetsIfNeeded

Makes sure the specified assets are loaded into memory.

Windows
MacOS
Linux

References

Module

AssetTools

Header

/Engine/Source/Developer/AssetTools/Public/AssetViewUtils.h

Include

#include "AssetViewUtils.h"

Source

/Engine/Source/Developer/AssetTools/Private/AssetViewUtils.cpp

Syntax

namespace AssetViewUtils
{
    bool AssetViewUtils::LoadAssetsIfNeeded
    (
        const TArray< FString > & ObjectPaths,
        TArray< UObject * > & LoadedObjects,
        bool bAllowedToPromptToLoadAssets,
        bool bLoadRedirects
    )
}

Remarks

Makes sure the specified assets are loaded into memory.

Returns

false if user canceled after being warned about loading very many packages.

Parameters

Parameter

Description

ObjectPaths

The paths to the objects to load.

LoadedObjects

The returned list of objects that were already loaded or loaded by this method.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss