FObjectKey

[FObjectKey](API\Runtime\CoreUObject\UObject\FObjectKey) is an immutable, copyable key which can be used to uniquely identify an object for the lifetime of the application

Choose your operating system:

Windows

macOS

Linux

References

Module

CoreUObject

Header

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

Include

#include "UObject/ObjectKey.h"

Syntax

struct FObjectKey

Remarks

FObjectKey is an immutable, copyable key which can be used to uniquely identify an object for the lifetime of the application

Constructors

Name Description

Public function

FObjectKey()

Default constructor

Public function

FObjectKey

(
    const UObject* Object
)

Construct from an object pointer

Public function

FObjectKey

(
    U Object
)

Functions

Name Description

Public function Const

UObject *...

 

ResolveObjectPtr()

Attempt to access the object from which this key was constructed.

Public function Const

UObject *...

 

ResolveObjectPtrEvenIfPendingKill()

Attempt to access the object from which this key was constructed, even if it is marked as pending kill.

Operators

Name Description

Public function Const

bool

 

operator!=

(
    const FObjectKey& Other
)

Compare this key with another

Public function Const

bool

 

operator<

(
    const FObjectKey& Other
)

Compare this key with another

Public function Const

bool

 

operator<=

(
    const FObjectKey& Other
)

Compare this key with another

Public function Const

bool

 

operator==

(
    const FObjectKey& Other
)

Compare this key with another

Public function Const

bool

 

operator>

(
    const FObjectKey& Other
)

Compare this key with another

Public function Const

bool

 

operator>=

(
    const FObjectKey& Other
)

Compare this key with another