UField

Base class of reflection data objects.

Windows
MacOS
Linux

Inheritance Hierarchy

Syntax

class UField : public UObject

Remarks

Base class of reflection data objects.

Variables

Name Description

Public variable

UField *

 

Next

Next Field in the linked list

Constructors

Name Description

Public function

UField

(
    const FObjectInitializer& ObjectIn...
)

Public function

UField

(
    FVTableHelper& Helper
)

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

Public function

UField

(
    EStaticConstructor,
    EObjectFlags InFlags
)

Constructors.

Functions

Name Description

Public function Static

void

 

__DefaultConstructor

(
    const FObjectInitializer& X
)

Public function Static

UObject *...

 

__VTableCtorCaller

(
    FVTableHelper& Helper
)

Public function Virtual

void

 

AddCppProperty

(
    UProperty* Property
)

Public function Virtual

void

 

Bind()

Public function Const

bool

 

GetBoolMetaData

(
    const FName& Key
)

Public function Const

bool

 

GetBoolMetaData

(
    const TCHAR* Key
)

Find the metadata value associated with the key and return bool

Public function Const

UClass *

 

GetClassMetaData

(
    const TCHAR* Key
)

Find the metadata value associated with the key and return Class

Public function Const

UClass *

 

GetClassMetaData

(
    const FName& Key
)

Find the metadata value associated with the key and return Class

Public function Const

FText

 

GetDisplayNameText()

Finds the localized display name or native display name as a fallback.

Public function Const

float

 

GetFLOATMetaData

(
    const TCHAR* Key
)

Find the metadata value associated with the key and return float

Public function Const

float

 

GetFLOATMetaData

(
    const FName& Key
)

Public function Const

int32

 

GetINTMetaData

(
    const FName& Key
)

Public function Const

int32

 

GetINTMetaData

(
    const TCHAR* Key
)

Find the metadata value associated with the key and return int32

Public function Const

const FStrin...

 

GetMetaData

(
    const FName& Key
)

Find the metadata value associated with the key

Public function Const

const FStrin...

 

GetMetaData

(
    const TCHAR* Key
)

Find the metadata value associated with the key

Public function Const

const FText

 

GetMetaDataText

(
    const FName& MetaDataKey,
    const FString LocalizationNamespace,
    const FString LocalizationKey
)

A dynamically sizeable string.

Public function Const

const FText

 

GetMetaDataText

(
    const TCHAR* MetaDataKey,
    const FString LocalizationNamespace,
    const FString LocalizationKey
)

Find the metadata value associated with the key and localization namespace and key

Public function Const

UClass *

 

GetOwnerClass()

Goes up the outer chain to look for a UClass

Public function Const

UStruct *...

 

GetOwnerStruct()

Goes up the outer chain to look for a UStruct

Public function Const

FText

 

GetToolTipText

(
    bool bShortTooltip
)

Finds the localized tooltip or native tooltip as a fallback.

Public function Const

bool

 

HasMetaData

(
    const FName& Key
)

Determines if the property has any metadata associated with the key

Public function Const

bool

 

HasMetaData

(
    const TCHAR* Key
)

Determines if the property has any metadata associated with the key

Public function

void

 

RemoveMetaData

(
    const TCHAR* Key
)

Clear any metadata associated with the key

Public function

void

 

RemoveMetaData

(
    const FName& Key
)

Clear any metadata associated with the key

Public function

void

 

SetMetaData

(
    const TCHAR* Key,
    const TCHAR* InValue
)

Sets the metadata value associated with the key

Public function

void

 

SetMetaData

(
    const FName& Key,
    const TCHAR* InValue
)

Sets the metadata value associated with the key

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

 

StaticRegisterNativesUField()

Overridden from UObject

Name Description

Public function Virtual Const

bool

 

NeedsLoadForClient()

Called during saving to determine the load flags to save with the object.

Public function Virtual Const

bool

 

NeedsLoadForServer()

Called during saving to determine the load flags to save with the object.

Public function Virtual

void

 

PostLoad()

Do any object-specific cleanup required immediately after loading an object.

Public function Virtual

void

 

Serialize

(
    FArchive& Ar
)

Handles reading, writing, and reference collecting using FArchive.

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.

Typedefs

Name

Description

Super

Typedef for the base class (UObject)

ThisClass

Typedef for UField.

Constants

Name

Description

StaticClassFlags

Bitwise union of EClassFlags pertaining to this class.

References

Module

CoreUObject

Header

Runtime/CoreUObject/Public/UObject/Class.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