Navigation
API > API/Runtime > API/Runtime/CoreUObject
FObjectKey is an immutable, copyable key which can be used to uniquely identify an object for the lifetime of the application
| Name | FObjectKey |
| Type | struct |
| Header File | /Engine/Source/Runtime/CoreUObject/Public/UObject/ObjectKey.h |
| Include Path | #include "UObject/ObjectKey.h" |
Syntax
struct FObjectKey
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FObjectKey () |
Default constructor | UObject/ObjectKey.h | |
FObjectKey
(
const UObject* Object |
Construct from an object pointer | UObject/ObjectKey.h | |
FObjectKey
(
U Object |
UObject/ObjectKey.h | ||
FObjectKey
(
int32 Index, |
UObject/ObjectKey.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| ObjectIndex | int32 | UObject/ObjectKey.h | ||
| ObjectSerialNumber | int32 | UObject/ObjectKey.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FWeakObjectPtr GetWeakObjectPtr() |
Create an FWeakObjectPtr that points to the same object as this key. | UObject/ObjectKey.h | |
UObject * ResolveObjectPtr() |
Attempt to access the object from which this key was constructed. | UObject/ObjectKey.h | |
UObject * ResolveObjectPtrEvenIfGarbage() |
Attempt to access the object from which this key was constructed, even if it is marked as Garbage. | UObject/ObjectKey.h | |
UObject * ResolveObjectPtrEvenIfPendingKill() |
UObject/ObjectKey.h | ||
UObject * ResolveObjectPtrEvenIfUnreachable() |
Attempt to access the object from which this key was constructed, even if it is RF_PendingKill or RF_Unreachable | UObject/ObjectKey.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool operator!=
(
const FObjectKey& Other |
Compare this key with another | UObject/ObjectKey.h | |
bool operator==
(
const FObjectKey& Other |
Compare this key with another | UObject/ObjectKey.h | |
bool operator>
(
const FObjectKey& Other |
Compare this key with another | UObject/ObjectKey.h | |
bool operator>=
(
const FObjectKey& Other |
Compare this key with another | UObject/ObjectKey.h |