TObjectKey

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

Windows
MacOS
Linux

References

Module

CoreUObject

Header

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

Include

#include "UObject/ObjectKey.h"

Syntax

template<typename InElementType>
class TObjectKey

Remarks

TObjectKey is a strongly typed, immutable, copyable key which can be used to uniquely identify an object for the lifetime of the application

Constructors

Name Description

Public function

TObjectKey()

Default constructor

Public function

TObjectKey

(
    const ElementType* Object
)

Construct from an object pointer

Functions

Name Description

Public function Const

InElementTyp...

 

ResolveObjectPtr()

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

Operators

Name Description

Public function Const

bool

 

operator!=

(
    const TObjectKey& Other
)

Compare this key with another

Public function Const

bool

 

operator<

(
    const TObjectKey& Other
)

Compare this key with another

Public function Const

bool

 

operator<=

(
    const TObjectKey& Other
)

Compare this key with another

Public function Const

bool

 

operator==

(
    const TObjectKey& Other
)

Compare this key with another

Public function Const

bool

 

operator>

(
    const TObjectKey& Other
)

Compare this key with another

Public function Const

bool

 

operator>=

(
    const TObjectKey& Other
)

Compare this key with another

Typedefs

Name

Description

ElementType

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