FCoreRedirectObjectName

An object path extracted into component names for matching.

Windows
MacOS
Linux

References

Module

CoreUObject

Header

/Engine/Source/Runtime/CoreUObject/Public/UObject/CoreRedirects.h

Include

#include "UObject/CoreRedirects.h"

Syntax

struct FCoreRedirectObjectName

Remarks

An object path extracted into component names for matching. TODO merge with FSoftObjectPath?

Variables

Name Description

Public variable

FName

 

ObjectName

Raw name of object

Public variable

FName

 

OuterName

String of outer chain, may be empty

Public variable

FName

 

PackageName

Package this was in before, may be extracted out of OldName

Constructors

Name Description

Public function

FCoreRedirectObjectName()

Default to invalid names

Public function

FCoreRedirectObjectName

(
    const FCoreRedirectObjectName& Oth...
)

Copy constructor

Public function

FCoreRedirectObjectName

(
    const FString& InString
)

Construct from a path string, this handles full paths with packages, or partial paths without

Public function

FCoreRedirectObjectName

(
    const UObject* Object
)

Construct from object in memory

Public function

FCoreRedirectObjectName

(
    FName InObjectName,
    FName InOuterName,
    FName InPackageName
)

Construct from FNames that are already expanded

Functions

Name Description

Public function Static

FString

 

CombineNames

(
    FName NewName,
    FName NewOuter,
    FName NewPackage
)

Turn it back into an FString

Public function Static

bool

 

ExpandNames

(
    const FString& FullString,
    FName& OutName,
    FName& OutOuter,
    FName& OutPackage
)

Expand OldName/NewName as needed

Public function Const

FName

 

GetSearchKey

(
    ECoreRedirectFlags Type
)

Returns the name used as the key into the acceleration map

Public function Const

bool

 

HasValidCharacters()

Returns true if all names have valid characters

Public function Const

bool

 

IsValid()

Returns true if this refers to an actual object

Public function Const

bool

 

Matches

(
    const FCoreRedirectObjectName& Oth...,
    bool bCheckSubstring
)

Returns true if the passed in name matches requirements, will ignore names that are none

Public function Const

int32

 

MatchScore

(
    const FCoreRedirectObjectName& Oth...
)

Returns integer of degree of match. 0 if doesn't match at all, higher integer for better matches

Public function

void

 

Reset()

Sets back to invalid state

Public function Const

FString

 

ToString()

Creates FString version

Operators

Name Description

Public function Const

bool

 

operator!=

(
    const FCoreRedirectObjectName& Oth...
)

Public function Const

bool

 

operator==

(
    const FCoreRedirectObjectName& Oth...
)

Checks for exact equality

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