FSoftObjectPath::PostLoadPath
#include "UObject/SoftObjectPath.h"
Access: public
Specifiers: const
Description
Called after the path is deserialized to apply core redirects and any other post-load fixup, updating the path in place.
Caveats & Gotchas
- • Declared const but logically mutates the path (it modifies internal state through the redirection table). This is intentional to allow fixup on const references, but can be surprising when debugging.
- • SerializePath calls this automatically; you only need to call PostLoadPath manually when you have deserialized a path via SerializePathWithoutFixup and want to apply fixup in a controlled second step.
Signature
COREUOBJECT_API void PostLoadPath(FArchive* InArchive) const Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| InArchive | FArchive* | The archive from which this path was loaded; used for context during fixup. May be nullptr. | — |
Return Type
void Example
Apply fixup after a fixup-free deserialization C++
FSoftObjectPath Path;
Path.SerializePathWithoutFixup(Ar); // raw load
// ... inspect raw value ...
Path.PostLoadPath(&Ar); // now apply redirects
UE_LOG(LogTemp, Log, TEXT("Fixed-up path: %s"), *Path.ToString()); See Also
Tags
Version History
Introduced in: unknown
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?