UObjectProperty

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

Windows
MacOS
Linux

Inheritance Hierarchy

Syntax

class UObjectProperty : public TUObjectPropertyBase< UObject * >

Remarks

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

Constructors

Name Description

Public function

UObjectProperty

(
    const FObjectInitializer& ObjectIn...
)

Public function

UObjectProperty

(
    FVTableHelper& Helper
)

DO NOT USE. This constructor is for internal usage only for hot-reload purposes.

Public function

UObjectProperty

(
    ECppProperty,
    int32 InOffset,
    EPropertyFlags InFlags,
    UClass* InClass
)

Public function

UObjectProperty

(
    const FObjectInitializer& ObjectIn...,
    ECppProperty,
    int32 InOffset,
    EPropertyFlags InFlags,
    UClass* InClass
)

Functions

Name Description

Public function Static

void

 

__DefaultConstructor

(
    const FObjectInitializer& X
)

Public function Static

UObject *...

 

__VTableCtorCaller

(
    FVTableHelper& Helper
)

Public function Virtual

EConvertFrom...

 

ConvertFromType

(
    const FPropertyTag& Tag,
    FStructuredArchive::FSlot Slot,
    uint8* Data,
    UStruct* DefaultsStruct
)

Allows a property to implement backwards compatibility handling for tagged properties

Public function Virtual

void

 

EmitReferenceInfo

(
    UClass& OwnerClass,
    int32 BaseOffset,
    TArray< const UStructProperty*...
)

Emits tokens used by realtime garbage collection code to passed in OwnerClass' ReferenceTokenStream.

Public function Virtual Const

FString

 

GetCPPMacroType

(
    FString& ExtendedTypeText
)

Public function Virtual Const

FString

 

GetCPPTypeCustom

(
    FString* ExtendedTypeText,
    uint32 CPPExportFlags,
    const FString& InnerNativeTypeName
)

Public function Virtual Const

FString

 

GetCPPTypeForwardDeclaration()

Public function Virtual Const

UObject *...

 

GetObjectPropertyValue

(
    const void* PropertyValueAddre...
)

Public function Virtual Const

const TCHAR ...

 

ImportText_Internal

(
    const TCHAR* Buffer,
    void* Data,
    int32 PortFlags,
    UObject* OwnerObject,
    FOutputDevice* ErrorText
)

Public function Virtual Const

void

 

SerializeItem

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

Public function Virtual Const

void

 

SetObjectPropertyValue

(
    void* PropertyValueAddress,
    UObject* Value
)

Public function Static

UClass *

 

StaticClass()

Returns a UClass object representing this class at runtime

Public function Static

EClassCastFl...

 

StaticClassCastFlags()

Returns the static cast flags for this class

Public function Static

const TCHAR ...

 

StaticPackage()

Returns the package this class belongs in

Public function Static

void

 

StaticRegisterNativesUObjectProperty()

Operators

Name Description

Public function

void *

 

operator new

(
    const size_t InSize,
    EInternal InInternalOnly,
    UObject* InOuter,
    FName InName,
    EObjectFlags InSetFlags
)

For internal use only; use StaticConstructObject() to create new objects.

Public function

void *

 

operator new

(
    const size_t InSize,
    EInternal* InMem
)

For internal use only; use StaticConstructObject() to create new objects.

Typedefs

Name

Description

Super

Typedef for the base class (TUObjectPropertyBase< UObject * >)

ThisClass

Typedef for UObjectProperty.

Constants

Name

Description

StaticClassFlags

Bitwise union of EClassFlags pertaining to this class.

References

Module

CoreUObject

Header

Runtime/CoreUObject/Public/UObject/UnrealType.h

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback