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

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

Functions

Name Description

Public function Const

UObject *...

 

ResolveObjectPtr()

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

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

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