UField

Base class of reflection data objects.

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

CoreUObject

Header

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

Include

#include "UObject/Class.h"

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

(
    FProperty* Property
)

Public function Virtual

void

 

Bind()

Public function Const

const FStrin...

 

FindMetaData

(
    const TCHAR* Key
)

Find the metadata value associated with the key

Public function Const

const FStrin...

 

FindMetaData

(
    const FName& Key
)

Find the metadata value associated with the key

Public function Static

void

 

FormatNativeToolTip

(
    FString& ToolTipString,
    bool bRemoveExtraSections
)

Formats a source comment into the form we want to show in the editor, is used by GetToolTipText and anything else that will get a native tooltip

Public function Virtual

FField *

 

GetAssociatedFField()

Gets the FField object associated with this Field

Public function Const

FString

 

GetAuthoredName()

Returns a human readable string that was assigned to this field at creation.

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 FName& Key
)

Find the metadata value associated with the key and return Class

Public function Const

UClass *

 

GetClassMetaData

(
    const TCHAR* 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 FName& Key
)

Public function Const

float

 

GetFloatMetaData

(
    const TCHAR* Key
)

Find the metadata value associated with the key and return float

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

FText

 

GetMetaDataText

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

A dynamically sizeable string.

Public function 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

 

HasAllCastFlags

(
    const uint64 InCastFlags
)

Public function Const

bool

 

HasAnyCastFlags

(
    const uint64 InCastFlags
)

Public function Const

bool

 

HasMetaData

(
    const FName& 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 Virtual

void

 

SetAssociatedFField

(
    FField* InField
)

Sets the FField object associated with this Field

Public function

void

 

SetMetaData

(
    const FName& Key,
    const TCHAR* InValue
)

Sets the metadata value associated with the key

Public function

void

 

SetMetaData

(
    const TCHAR* 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

BaseFieldClass

FieldTypeClass

Super

Typedef for the base class (UObject)

ThisClass

Typedef for UField.

Constants

Name

Description

StaticClassFlags

Bitwise union of EClassFlags pertaining to this class.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss