UAssetManager::ExpandVirtualPaths
#include "Engine/AssetManager.h"
Access: public
Specifiers: virtualconst
Description
Expands a list of paths that potentially use virtual asset roots into real directory and package paths. Modifies the array in place.
Caveats & Gotchas
- • Returns true only if any changes were actually made — an all-real-path input returns false even though the function succeeded.
- • Virtual roots must already be registered via AddAssetSearchRoot for expansion to resolve correctly; unknown roots pass through unchanged.
Signature
virtual bool ExpandVirtualPaths(TArray<FString>& InOutPaths) const; Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| InOutPaths | TArray<FString>& | List of paths to expand in place; may contain virtual roots such as /Game or custom dynamic roots. | — |
Return Type
bool Example
Resolve scan paths before use C++
TArray<FString> Paths;
Paths.Add(TEXT("/MyPlugin/Items"));
if (UAssetManager::Get().ExpandVirtualPaths(Paths))
{
// Paths now contains the resolved on-disk/package paths
} Tags
Version History
Introduced in: unknown
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?