FRedirectCollector

Windows
MacOS
Linux

References

Module

CoreUObject

Header

/Engine/Source/Runtime/CoreUObject/Public/Misc/RedirectCollector.h

Include

#include "Misc/RedirectCollector.h"

Syntax

class FRedirectCollector

Functions

Name Description

Public function

void

 

AddAssetPathRedirection

(
    FName OriginalPath,
    FName RedirectedPath
)

Adds a new mapping for redirector path to destination path, this is called from the Asset Registry to register all redirects it knows about

Public function

FName

 

GetAssetPathRedirection

(
    FName OriginalPath
)

Returns a remapped asset path, if it returns null there is no relevant redirector

Public function Const

bool

 

HasAnySoftObjectPathsToResolve()

Do we have any references to resolve.

Public function

void

 

OnSoftObjectPathLoaded

(
    const FSoftObjectPath& InPath,
    FArchive* InArchive
)

Called from FSoftObjectPath::PostLoadPath, registers the given SoftObjectPath for later querying

Public function

void

 

ProcessSoftObjectPathPackageList

(
    FName FilterPackage,
    bool bGetEditorOnly,
    TSet< FName >& OutReferencedPackag...
)

Returns the list of packages referenced by soft object paths loaded by FilterPackage, and remove them from the internal list

Public function

void

 

RemoveAssetPathRedirection

(
    FName OriginalPath
)

Removes an asset path redirection, call this when deleting redirectors

Public function

void

 

ResolveAllSoftObjectPaths

(
    FName FilterPackage
)

Load all soft object paths to resolve them, add that to the remap table, and empty the array

Typedefs

Name

Description

FSoftObjectPathMap

FSoftObjectPathPropertySet

A map of assets referenced by soft object paths, with the key being the package with the reference

Deprecated Functions

Name Description

Public function

void

 

OnStringAssetReferenceLoaded

(
    const FString& InString
)

OnStringAssetReferenceLoaded is deprecated, call OnSoftObjectPathLoaded

Public function

FString

 

OnStringAssetReferenceSaved

(
    const FString& InString
)

OnStringAssetReferenceSaved is deprecated, call GetAssetPathRedirection

Public function

void

 

ResolveStringAssetReference

(
    FName FilterPackage,
    bool bProcessAlreadyResolvedPackage...
)

ResolveStringAssetReference is deprecated, call ResolveAllSoftObjectPaths

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss