![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <CoreRedirects.h>
Public Types | |
| enum class | EMatchFlags { None = 0 , DisallowPartialLHSMatch = (1 << 0) , AllowPartialRHSMatch = (1 << 1) , CheckSubString = (1 << 2) , CheckPrefix = (1 << 3) , CheckSuffix = (1 << 4) } |
Static Public Member Functions | |
| static COREUOBJECT_API bool | ExpandNames (const FStringView FullString, FName &OutName, FName &OutOuter, FName &OutPackage) |
| static COREUOBJECT_API FString | CombineNames (FName NewName, FName NewOuter, FName NewPackage) |
| static COREUOBJECT_API FCoreRedirectObjectName | AppendObjectName (const FCoreRedirectObjectName &Parent, FName ObjectName) |
| static COREUOBJECT_API FCoreRedirectObjectName | GetParent (const FCoreRedirectObjectName &Child) |
Public Attributes | |
| FName | ObjectName |
| FName | OuterName |
| FName | PackageName |
Friends | |
| uint32 | GetTypeHash (const FCoreRedirectObjectName &RedirectName) |
An object path extracted into component names for matching. TODO merge with FSoftObjectPath?
|
strong |
Flags for the Matches function. These flags overlap but are lower-level than ECoreRedirectMatchFlags.
|
default |
Default to invalid names
|
inline |
Construct from FNames that are already expanded
| FCoreRedirectObjectName::FCoreRedirectObjectName | ( | const FTopLevelAssetPath & | TopLevelAssetPath | ) |
| FCoreRedirectObjectName::FCoreRedirectObjectName | ( | const FSoftObjectPath & | SoftObjectPath | ) |
| FCoreRedirectObjectName::FCoreRedirectObjectName | ( | const FString & | InString | ) |
| FCoreRedirectObjectName::FCoreRedirectObjectName | ( | const class UObject * | Object | ) |
Construct from object in memory
Update Hasher with all fields from this
|
static |
Given parent FCoreRedirectObjectName and FName of a child under it, return child's FCoreRedirectObjectName.
|
static |
Turn it back into an FString
| int FCoreRedirectObjectName::Compare | ( | const FCoreRedirectObjectName & | Other | ) | const |
Compares the two names lexically, returning -,0,+
|
static |
Expand OldName/NewName as needed
|
static |
Given a child FCoreRedirectObjectName, return its parent's FCoreRedirectObjectName. If the input has no parent (empty or is package with no outer), returns an empty FCoreRedirectObjectName.
| FName FCoreRedirectObjectName::GetSearchKey | ( | ECoreRedirectFlags | Type | ) | const |
Returns the name used as the key into the acceleration map
| bool FCoreRedirectObjectName::HasValidCharacters | ( | ECoreRedirectFlags | Type | ) | const |
Returns true if all names have valid characters
|
inline |
Returns true if this refers to an actual object
| bool FCoreRedirectObjectName::Matches | ( | const FCoreRedirectObjectName & | Other, |
| EMatchFlags | MatchFlags = EMatchFlags::None |
||
| ) | const |
Returns true if the passed in name matches requirements.
| int32 FCoreRedirectObjectName::MatchScore | ( | const FCoreRedirectObjectName & | Other, |
| ECoreRedirectFlags | RedirectFlags, | ||
| ECoreRedirectMatchFlags | MatchFlags | ||
| ) | const |
Returns integer of degree of match. 0 if doesn't match at all, higher integer for better matches
|
inline |
|
inline |
Checks for exact equality
| void FCoreRedirectObjectName::Reset | ( | ) |
Sets back to invalid state
| FString FCoreRedirectObjectName::ToString | ( | ) | const |
Creates FString version
| void FCoreRedirectObjectName::UnionFieldsInline | ( | const FCoreRedirectObjectName & | Other | ) |
Fills in any empty fields on this with the corresponding fields from Other.
|
friend |
| FName FCoreRedirectObjectName::ObjectName |
Raw name of object
| FName FCoreRedirectObjectName::OuterName |
String of outer chain, may be empty
| FName FCoreRedirectObjectName::PackageName |
Package this was in before, may be extracted out of OldName