FObjectPtrProperty

Describes a reference variable to another object which may be nil.

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

References

Module

CoreUObject

Header

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

Include

#include "UObject/UnrealType.h"

Syntax

class FObjectPtrProperty : public FObjectProperty

Remarks

Describes a reference variable to another object which may be nil.

Constructors

Name Description

Public function

FObjectPtrProperty

(
    UField* InField
)

Public function

FObjectPtrProperty

(
    EInternal InInernal,
    FFieldClass* InClass
)

Functions

Name Description

Public function Static

FField *

 

Construct

(
    const FFieldVariant& InOwner,
    const FName& InName,
    EObjectFlags InObjectFlags
)

Public function Static

FFieldClass ...

 

StaticClass()

Public function Static

uint64

 

StaticClassCastFlags()

Public function Static

uint64

 

StaticClassCastFlagsPrivate()

Public function Static

bool

 

StaticIdentical

(
    const void* A,
    const void* B,
    uint32 PortFlags
)

Public function Static

void

 

StaticSerializeItem

(
    const FObjectPropertyBase* Obj...,
    FStructuredArchive::FSlot Slot,
    void* Value,
    void const* Defaults
)

Helper methods for sharing code with FClassPtrProperty even though one doesn't inherit from the other.

Overridden from FObjectPropertyBase

Name Description

Public function Virtual Const

bool

 

AllowCrossLevel()

Public function Virtual Const

bool

 

AllowObjectTypeReinterpretationTo

(
    const FObjectPropertyBase* Oth...
)

Public function Virtual Const

UObject *...

 

GetObjectPropertyValue

(
    const void* PropertyValueAddre...
)

Public function Virtual Const

void

 

SetObjectPropertyValue

(
    void* PropertyValueAddress,
    UObject* Value
)

Overridden from FProperty

Name Description

Public function Virtual Const

FString

 

GetCPPMacroType

(
    FString& ExtendedTypeText
)

Public function Virtual Const

bool

 

Identical

(
    const void* A,
    const void* B,
    uint32 PortFlags
)

Determines whether the property values are identical.

Public function Virtual Const

bool

 

SameType

(
    const FProperty* Other
)

Returns true, if Other is property of exactly the same type

Public function Virtual Const

void

 

SerializeItem

(
    FStructuredArchive::FSlot Slot,
    void* Value,
    void const* Defaults
)

Overridden from TProperty

Name Description

Public function Virtual Const

FString

 

GetCPPType

(
    FString* ExtendedTypeText,
    uint32 CPPExportFlags
)

TProperty::GetCPPType should not be used here.

Operators

Name Description

Public function

void

 

operator delete

(
    void* InMem
)

Public function

void *

 

operator new

(
    const size_t InSize,
    void* InMem
)

Public function

void *

 

operator new

(
    const size_t InSize
)

Typedefs

Name

Description

Super

Typedef for the base class (FObjectPropertyBase)

Super

Super

ThisClass