UProperty

Inheritance Hierarchy

Syntax

class UProperty : public UField

Remarks

An UnrealScript variable.

Variables

Name Description

Public variable

int32

 

ArrayDim

Persistent variables.

Public variable

UProperty *

 

DestructorLinkNext

In memory only: Linked list of properties requiring destruction.

Public variable

int32

 

ElementSize

Public variable

UProperty *

 

NextRef

In memory only: Linked list of object reference properties from most-derived to base

Public variable

UProperty *

 

PostConstructLinkNext

In memory only: Linked list of properties requiring post constructor initialization.

Public variable

uint64

 

PropertyFlags

Public variable

UProperty *

 

PropertyLinkNext

In memory only: Linked list of properties from most-derived to base

Public variable

uint16

 

RepIndex

Public variable

FName

 

RepNotifyFunc

Constructors

Name Description

Public function

UProperty

(
    const FObjectInitializer & ObjectIn...
)

Constructors.

Public function

UProperty

(
    ECppProperty,
    int32 InOffset,
    uint64 InFlags
)

Public function

UProperty

(
    const FObjectInitializer & ObjectIn...,
    ECppProperty,
    int32 InOffset,
    uint64 InFlags
)

Functions

Name Description

Public function Static

void

 

__DefaultConstructor

(
    const FObjectInitializer & X
)

Public function

void

 

ClearPropertyFlags

(
    uint64 NewFlags
)

Public function

void

 

ClearValue

(
    void* Data
)

Zeros the value for this property.

Public function

void

 

ClearValue_InContainer

(
    void* Data,
    int32 ArrayIndex
)

Zeros the value for this property.

Protected function Virtual

void

 

ClearValueInternal

(
    void* Data
)

Public function

ValueType co...

 

ContainerPtrToValuePtr

(
    UObject const* ContainerPtr,
    int32 ArrayIndex
)

Public function

ValueType co...

 

ContainerPtrToValuePtr

(
    void const* ContainerPtr,
    int32 ArrayIndex
)

Public function

ValueType &#...

 

ContainerPtrToValuePtr

(
    void* ContainerPtr,
    int32 ArrayIndex
)

Public function

ValueType &#...

 

ContainerPtrToValuePtr

(
    UObject * ContainerPtr,
    int32 ArrayIndex
)

Get the pointer to property value in a supplied 'container'.

Public function

ValueType co...

 

ContainerPtrToValuePtrForDefaults

(
    UStruct * ContainerClass,
    void const* ContainerPtr,
    int32 ArrayIndex
)

Public function

ValueType &#...

 

ContainerPtrToValuePtrForDefaults

(
    UStruct * ContainerClass,
    void* ContainerPtr,
    int32 ArrayIndex
)

Public function

ValueType &#...

 

ContainerPtrToValuePtrForDefaults

(
    UStruct * ContainerClass,
    UObject * ContainerPtr,
    int32 ArrayIndex
)

Default variants, these accept and return NULL, and also check the property against the size of the container.

Public function

ValueType co...

 

ContainerPtrToValuePtrForDefaults

(
    UStruct * ContainerClass,
    UObject const* ContainerPtr,
    int32 ArrayIndex
)

Public function

bool

 

ContainsInstancedObjectProperty()

Returns true if this property, or in the case of e.g. array or struct properties any sub- property, contains a UObject reference that is marked CPF_NeedCtorLink (i.e. instanced keyword).

Public function Virtual

bool

 

ContainsObjectReference

(
    TArray < const UStructProperty *...
)

Returns true if this property, or in the case of e.g. array or struct properties any sub- property, contains a UObject reference.

Public function Virtual

bool

 

ContainsWeakObjectReference()

Returns true if this property, or in the case of e.g. array or struct properties any sub- property, contains a weak UObject reference.

Public function Virtual

bool

 

ConvertFromType

(
    const FPropertyTag & Tag,
    FArchive & Ar,
    uint8* Data,
    UStruct * DefaultsStruct,
    bool& bOutAdvanceProperty
)

Allows a property to implement backwards compatibility handling for tagged properties

Public function

void

 

CopyCompleteValue

(
    void* Dest,
    void const* Src
)

Copy the value for all elements of this property.

Public function

void

 

CopyCompleteValue_InContainer

(
    void* Dest,
    void const* Src
)

Public function Virtual

void

 

CopyCompleteValueFromScriptVM

(
    void* Dest,
    void const* Src
)

Copy the value for all elements of this property. From the script VM.

Public function Virtual

void

 

CopyCompleteValueToScriptVM

(
    void* Dest,
    void const* Src
)

Copy the value for all elements of this property. To the script VM.

Public function

void

 

CopySingleValue

(
    void* Dest,
    void const* Src
)

Copy the value for a single element of this property.

Public function Virtual

void

 

CopySingleValueFromScriptVM

(
    void* Dest,
    void const* Src
)

Copy the value for a single element of this property. From the script VM.

Public function Virtual

void

 

CopySingleValueToScriptVM

(
    void* Dest,
    void const* Src
)

Copy the value for a single element of this property. To the script VM.

Protected function Virtual

void

 

CopyValuesInternal

(
    void* Dest,
    void const* Src,
    int32 Count
)

Public function

void

 

DestroyValue

(
    void* Dest
)

Destroys the value for this property.

Public function

void

 

DestroyValue_InContainer

(
    void* Dest
)

Destroys the value for this property.

Protected function Virtual

void

 

DestroyValueInternal

(
    void* Dest
)

Public function Virtual

void

 

EmitReferenceInfo

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

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

Public function

void

 

ExportCppDeclaration

(
    FOutputDevice & Out,
    EExportedDeclaration::Type Declarat...,
    const TCHAR* ArrayDimOverride,
    uint32 AdditionalExportCPPFlags,
    bool bSkipParameterName,
    const FString * ActualCppType,
    const FString * ActualExtendedT...,
    const FString * ActualParameter...
)

UHT interface.

Public function

bool

 

ExportText_Direct

(
    FString & ValueStr,
    const void* Data,
    const void* Delta,
    UObject * Parent,
    int32 PortFlags,
    UObject * ExportRootScope
)

Public function

bool

 

ExportText_InContainer

(
    int32 Index,
    FString & ValueStr,
    const void* Data,
    const void* Delta,
    UObject * Parent,
    int32 PortFlags,
    UObject * ExportRootScope
)

Public function Virtual

void

 

ExportTextItem

(
    FString & ValueStr,
    const void* PropertyValue,
    const void* DefaultValue,
    UObject * Parent,
    int32 PortFlags,
    UObject * ExportRootScope
)

Public function

ELifetimeCon...

 

GetBlueprintReplicationCondition()

Public function Virtual

FString

 

GetCPPMacroType

(
    FString & ExtendedTypeText
)

Public function Virtual

FString

 

GetCPPType

(
    FString * ExtendedTypeText,
    uint32 CPPExportFlags
)

Returns the text to use for exporting this property to header file.

Public function Virtual

FString

 

GetCPPTypeForwardDeclaration()

Public function Virtual

FName

 

GetID()

Public function Virtual

int32

 

GetMinAlignment()

Public function

FString

 

GetNameCPP()

Returns the C++ name of the property, including the _DEPRECATED suffix if the property is deprecated.

Public function

int32

 

GetOffset_ForDebug()

Return offset of property from container base.

Public function

int32

 

GetOffset_ForGC()

Return offset of property from container base.

Public function

int32

 

GetOffset_ForInternal()

Return offset of property from container base.

Public function

int32

 

GetOffset_ForUFunction()

Return offset of property from container base.

Public function

int32

 

GetOffset_ReplaceWith_ContainerPtrToValuePtr()

Return offset of property from container base.

Public function

UField *

 

GetOuterUField()

Public function

const UPrope ...

 

GetOwnerProperty()

Public function

UProperty &#...

 

GetOwnerProperty()

Returns the first UProperty in this property's Outer chain that does not have a UProperty for an Outer

Public function

uint64

 

GetPropertyFlags()

Returns this property's propertyflags

Public function

UProperty &#...

 

GetRepOwner()

Returns the replication owner, which is the property itself, or NULL if this isn't important for replication.

Public function

int32

 

GetSize()

Public function

uint32

 

GetValueTypeHash

(
    const void* Src
)

Returns the hash value for an element of this property.

Protected function Virtual

uint32

 

GetValueTypeHashInternal

(
    const void* Src
)

Public function

bool

 

HasAllPropertyFlags

(
    uint64 FlagsToCheck
)

Used to safely check whether all of the passed in flags are set.

Public function

bool

 

HasAnyPropertyFlags

(
    uint64 FlagsToCheck
)

Used to safely check whether any of the passed in flags are set.

Public function Virtual

bool

 

Identical

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

Determines whether the property values are identical.

true if the property values are identical

Public function

bool

 

Identical_InContainer

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

Determines whether the property values are identical.

true if the property values are identical

Public function Static

const TCHAR ...

 

ImportSingleProperty

(
    const TCHAR* Str,
    void* DestData,
    UStruct * ObjectStruct,
    UObject * SubobjectOuter,
    int32 PortFlags,
    FOutputDevice * Warn,
    TArray < struct FDefinedProperty >&...
)

End of UObject interface.

Public function

const TCHAR ...

 

ImportText

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

Protected function Virtual

const TCHAR ...

 

ImportText_Internal

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

Protected function

void

 

Init()

Initializes internal state.

Public function

void

 

InitializeValue

(
    void* Dest
)

Zeros, copies from the default, or calls the constructor for on the value for this property.

Public function

void

 

InitializeValue_InContainer

(
    void* Dest
)

Zeros, copies from the default, or calls the constructor for on the value for this property.

Protected function Virtual

void

 

InitializeValueInternal

(
    void* Dest
)

Public function Virtual

void

 

InstanceSubobjects

(
    void* Data,
    void const* DefaultData,
    UObject * Owner,
    FObjectInstancingGraph * Instan...
)

Creates new copies of components

Public function

bool

 

IsEditorOnlyProperty()

Editor-only properties are those that only are used with the editor is present or cannot be removed from serialisation.

Public function

bool

 

IsInContainer

(
    UStruct * ContainerClass
)

See if the offset of this property is below the supplied container size

Public function

bool

 

IsInContainer

(
    int32 ContainerSize
)

See if the offset of this property is below the supplied container size

Public function

int32

 

Link

(
    FArchive & Ar
)

Protected function Virtual

void

 

LinkInternal

(
    FArchive & Ar
)

Public function

void

 

LinkWithoutChangingOffset

(
    FArchive & Ar
)

Public function Virtual

bool

 

NetSerializeItem

(
    FArchive & Ar,
    UPackageMap * Map,
    void* Data,
    TArray < uint8 >* MetaData
)

Public function Virtual

bool

 

PassCPPArgsByRef()

Public function Virtual

bool

 

SameType

(
    const UProperty * Other
)

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

Public function

void

 

SerializeBinProperty

(
    FArchive & Ar,
    void* Data,
    int32 ArrayIdx
)

Serializes the property with the struct's data residing in Data.

Public function Virtual

void

 

SerializeItem

(
    FArchive & Ar,
    void* Value,
    void const* Defaults
)

Public function

void

 

SerializeNonMatchingBinProperty

(
    FArchive & Ar,
    void* Data,
    void const* DefaultData,
    UStruct * DefaultStruct
)

Serializes the property with the struct's data residing in Data, unless it matches the default

Public function

void

 

SetBlueprintReplicationCondition

(
    ELifetimeCondition InBlueprintRepli...
)

Protected function

void

 

SetOffset_Internal

(
    int32 NewOffset
)

Set the alignment offset for this property - added for UMapProperty

Public function

void

 

SetPropertyFlags

(
    uint64 NewFlags
)

Public function

bool

 

ShouldDuplicateValue()

Determines whether this property value is eligible for copying when duplicating an object

Public function

bool

 

ShouldPort

(
    uint32 PortFlags
)

Public function

bool

 

ShouldSerializeValue

(
    FArchive & Ar
)

Public function Static

UClass *

 

StaticClass()

Returns a UClass object representing this class at runtime

Public function Static

EClassCastFl...

 

StaticClassCastFlags()

Returns the StaticClassFlags for this class

Public function Static

void

 

StaticRegisterNativesUProperty()

Public function

bool

 

ValidateImportFlags

(
    uint32 PortFlags,
    FOutputDevice * ErrorText
)

Verify that modifying this property's value via ImportText is allowed.

Overridden from UObject

Name Description

Public function Virtual

void

 

Serialize

(
    FArchive & Ar
)

UObject interface.

Operators

Name Description

Public function

void *

 

operator new

(
    const size_t InSize,
    EInternal* InMem
)

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

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,
    UObject * InOuter,
    FName InName,
    EObjectFlags InSetFlags
)

Typedefs

Name

Description

Super

Typedef for the base class (UField )

ThisClass

Typedef for UProperty .

WithinClass

The required type of this object's outer (class UField )

Constants

Name

Description

IsIntrinsic

StaticClassFlags

Bitwise union of EClassFlags pertaining to this class.

References

Module

CoreUObject

Header

Runtime/CoreUObject/Public/UObject/UnrealType.h