UAssetManager::GetPakChunkIdToStringMapping
#include "Engine/AssetManager.h"
Access: public
Specifiers: virtual
Description
Allows the asset manager to override a pak chunk id with a string name instead of an integer, used at cook time to name the generated pak chunk files.
Caveats & Gotchas
- • The base implementation is a no-op ({}) — you must override it in a UAssetManager subclass to supply overrides, otherwise pak chunk file names use plain numeric ids.
- • A second overload taking a PlatformName lets you override per-platform; the cooker prefers that overload when available.
- • Override strings must be alphanumeric with no spaces, or pak/chunk generation can fail.
Signature
virtual void GetPakChunkIdToStringMapping(TMap<int32, FString>& ChunkIdStringOverride) {} Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| ChunkIdStringOverride | TMap<int32, FString>& | Out parameter filled with chunk id to string-name overrides. | — |
Return Type
void Example
Name chunks by string in a custom asset manager C++
void UMyAssetManager::GetPakChunkIdToStringMapping(TMap<int32, FString>& ChunkIdStringOverride)
{
ChunkIdStringOverride.Add(1, TEXT("DLC1"));
ChunkIdStringOverride.Add(2, TEXT("DLC2"));
} Tags
Version History
Introduced in: unknown
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?