FSoftObjectPath::SerializePath
#include "UObject/SoftObjectPath.h"
Access: public
Description
Serializes the soft object path to or from an archive, applying post-load fixup (core redirects, PIE remapping) on load.
Caveats & Gotchas
- • Unlike SerializePathWithoutFixup, this version calls PostLoadPath after deserialization, which may silently redirect the path via core redirects. If you need the raw on-disk path, use SerializePathWithoutFixup instead.
- • Called automatically by FArchive operator<< for FSoftObjectPath; you only need to call it explicitly in custom Serialize() overrides where the default operator is not used.
Signature
COREUOBJECT_API void SerializePath(FArchive& Ar) Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| Ar | FArchive& | The archive to read from or write to. | — |
Return Type
void Example
Manual serialize in a custom Serialize override C++
void UMyObject::Serialize(FArchive& Ar)
{
Super::Serialize(Ar);
MySoftPath.SerializePath(Ar); // handles both save and load with fixup
} Tags
Version History
Introduced in: unknown
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?