RealDocs

FSoftObjectPath::SerializePathWithoutFixup

function CoreUObject Since unknown
#include "UObject/SoftObjectPath.h"
Access: public

Description

Serializes the raw path bytes without applying PostLoadPath fixup, preserving the original on-disk string exactly as stored.

Caveats & Gotchas

  • Because no fixup is applied, the deserialized path may be stale if core redirects have moved the referenced asset since the data was saved. Use SerializePath unless you specifically need to inspect or migrate the raw stored value.
  • This variant is mainly used by the cook and asset registry pipelines that need to read the pre-fixup path for redirect resolution. Calling it in gameplay code almost always indicates a design mistake.

Signature

COREUOBJECT_API void SerializePathWithoutFixup(FArchive& Ar)

Parameters

Name Type Description Default
Ar FArchive& The archive to read from or write to.

Return Type

void

Example

Read raw path for a redirect migration tool C++
// Reading the stored (pre-redirect) path for a custom migration tool
FSoftObjectPath RawPath;
RawPath.SerializePathWithoutFixup(Ar); // no fixup applied
// Compare with redirector table to detect stale references
UE_LOG(LogTemp, Log, TEXT("Raw stored path: %s"), *RawPath.ToString());

Version History

Introduced in: unknown

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.