FObjectRef

[FObjectRef](API\Runtime\CoreUObject\UObject\FObjectRef) represents a heavyweight reference that contains the specific pieces of information needed to reference an object (or null) that may or may not be loaded yet.

Choose your operating system:

Windows

macOS

Linux

References

Module

CoreUObject

Header

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

Include

#include "UObject/ObjectHandle.h"

Syntax

struct FObjectRef

Remarks

FObjectRef represents a heavyweight reference that contains the specific pieces of information needed to reference an object (or null) that may or may not be loaded yet. The expectation is that given the imports of a package we have loaded, we should be able to create an FObjectRef to objects in a package we haven't yet loaded. For this reason, FObjectRef has to be derivable from the serialized (not transient) contents of an FObjectImport.

Variables

Name Description

Public variable

FName

 

ClassName

Public variable

FName

 

ClassPackageName

Public variable

FObjectPathId

 

ObjectPath

Public variable

FName

 

PackageName

Operators

Name Description

Public function Const

bool

 

operator==

(
    const FObjectRef&& Other
)