RealDocs

FSoftObjectPath::FixupCoreRedirects

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

Description

Applies core redirects (from DefaultEngine.ini [CoreRedirects]) to this path, updating it to the current canonical asset path if the asset has been moved or renamed.

Caveats & Gotchas

  • Returns true only if the path was actually changed by a redirect. A false return does not mean the path is valid — it may still point to a non-existent asset.
  • PostLoadPath already calls this during normal deserialization. Call FixupCoreRedirects explicitly only when you construct or modify a path at runtime and need redirect resolution outside of the normal load path.

Signature

COREUOBJECT_API bool FixupCoreRedirects()

Return Type

bool

Example

Manually redirect a runtime-constructed path C++
FSoftObjectPath Path(TEXT("/Game/OldFolder/MyAsset.MyAsset"));
bool bRedirected = Path.FixupCoreRedirects();
if (bRedirected)
{
    UE_LOG(LogTemp, Log, TEXT("Redirected to: %s"), *Path.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.