UAssetManager::AddAssetSearchRoot
#include "Engine/AssetManager.h"
Access: public
Specifiers: virtual
Description
Registers a new virtual asset search root so paths starting with it can be scanned and resolved like /Game.
Caveats & Gotchas
- • Triggers the OnAddedAssetSearchRoot delegate, which other systems (like content plugins) can use to rescan for newly-visible assets.
- • Adding a root does not itself scan anything — you still need to call ScanPathsForPrimaryAssets for paths under the new root.
Signature
virtual void AddAssetSearchRoot(const FString& NewRootPath); Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| NewRootPath | const FString& | New virtual root of the form /RootName, e.g. /MyPlugin. | — |
Return Type
void Example
Register a plugin mount point C++
UAssetManager::Get().AddAssetSearchRoot(TEXT("/MyPlugin")); Tags
Version History
Introduced in: unknown
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?