FObjectPtr

[FObjectPtr](API\Runtime\CoreUObject\UObject\FObjectPtr) is the basic, minimally typed version of [TObjectPtr](API\Runtime\CoreUObject\UObject\TObjectPtr)

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

FObjectPtr

TObjectPtr

References

Module

CoreUObject

Header

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

Include

#include "UObject/ObjectPtr.h"

Syntax

struct FObjectPtr

Remarks

FObjectPtr is the basic, minimally typed version of TObjectPtr

Constructors

Name Description

Public function

FObjectPtr()

Public function

FObjectPtr

(
    TYPE_OF_NULLPTR
)

Public function

FObjectPtr

(
    UObject* Object
)

Public function

FObjectPtr

(
    void* IncompleteObject
)

Public function

FObjectPtr

(
    const FObjectRef& ObjectRef
)

Public function

FObjectPtr

(
    const FPackedObjectRef& PackedObje...
)

Public function

FObjectPtr

(
    FObjectPtr&&
)

Public function

FObjectPtr

(
    const FObjectPtr&
)

Functions

Name Description

Public function Const

UObject *...

 

Get()

Public function Const

UClass *

 

GetClass()

Public function Const

FObjectHandl...

 

GetHandle()

Public function Const

FObjectHandl...

 

GetHandleRef()

Protected function Const

UObject *...

 

GetNoRead()

Public function Const

FString

 

GetPath()

Public function Const

bool

 

IsA

(
    const UClass* SomeBase
)

Public function Const

bool

 

IsA()

Public function Const

bool

 

IsNull()

Forcing resolve for null check. Non null unresolved pointers can become null resolved pointers.

Public function Const

bool

 

IsNullNoResolve()

Public function Const

bool

 

IsResolved()

Public function

TObjectPtr< ...

 

ToTObjectPtr()

Public function Const

const TObjec...

 

ToTObjectPtr()

Operators

Name Description

Public function Const

 

operator bool()

Public function Const

bool

 

operator!()

Public function Const

bool

 

operator!=

(
    FObjectPtr Other
)

Public function Const

UObject &

 

operator*()

Public function

FObjectPtr &

 

operator=

(
    FObjectPtr&&
)

Public function

FObjectPtr &

 

operator=

(
    const FObjectPtr&
)

Public function

FObjectPtr &

 

operator=

(
    UObject* Other
)

Public function

FObjectPtr &

 

operator=

(
    void* IncompleteOther
)

Public function

FObjectPtr &

 

operator=

(
    TYPE_OF_NULLPTR
)

Public function Const

bool

 

operator==

(
    FObjectPtr Other
)

Public function Const

UObject *...

 

operator->()