UAssetManager::WriteCustomReport
#include "Engine/AssetManager.h"
Access: public
Specifiers: virtualconst
Description
Helper function to write out asset reports, such as those generated by custom auditing tools built on top of the asset manager.
Caveats & Gotchas
- • The base implementation writes into a platform/engine-defined log directory rather than an arbitrary path — check the source for your engine version before assuming a fixed location.
- • Returns false if the file couldn't be written, such as a read-only filesystem in a shipping build, so check the return value rather than assuming success.
Signature
virtual bool WriteCustomReport(FString FileName, TArray<FString>& FileLines) const Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| FileName | FString | Name of the report file to write. | — |
| FileLines | TArray<FString>& | Lines of text to write to the report file. | — |
Return Type
bool Example
Write a simple CSV report C++
TArray<FString> Lines;
Lines.Add(TEXT("Asset,Size"));
Lines.Add(TEXT("/Game/Hero,1024"));
const bool bWrote = UAssetManager::Get().WriteCustomReport(TEXT("AssetSizeReport.csv"), Lines); See Also
Tags
Version History
Introduced in: unknown
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?