Navigation
API > API/Runtime > API/Runtime/CoreUObject
TObjectKey is a strongly typed, immutable, copyable key which can be used to uniquely identify an object for the lifetime of the application
| Name | TObjectKey |
| Type | class |
| Header File | /Engine/Source/Runtime/CoreUObject/Public/UObject/ObjectKey.h |
| Include Path | #include "UObject/ObjectKey.h" |
Syntax
template<typename InElementType>
class TObjectKey
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TObjectKey () |
Default constructor | UObject/ObjectKey.h | |
TObjectKey
(
U Object |
Construct from an object pointer | UObject/ObjectKey.h |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| ElementType | InElementType | UObject/ObjectKey.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| ObjectKey | FObjectKey | UObject/ObjectKey.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
InElementType * ResolveObjectPtr() |
Attempt to access the object from which this key was constructed. | UObject/ObjectKey.h | |
InElementType * ResolveObjectPtrEvenIfGarbage() |
Attempt to access the object from which this key was constructed, even if it is marked as Garbage. | UObject/ObjectKey.h | |
InElementType * ResolveObjectPtrEvenIfPendingKill() |
UObject/ObjectKey.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool operator!=
(
const TObjectKey& Other |
Compare this key with another | UObject/ObjectKey.h | |
bool operator==
(
const TObjectKey& Other |
Compare this key with another | UObject/ObjectKey.h | |
bool operator>
(
const TObjectKey& Other |
Compare this key with another | UObject/ObjectKey.h | |
bool operator>=
(
const TObjectKey& Other |
Compare this key with another | UObject/ObjectKey.h |