FFieldVariant

Special container that can hold either [UObject](API\Runtime\CoreUObject\UObject\UObject) or [FField](API\Runtime\CoreUObject\UObject\FField).

Choose your operating system:

Windows

macOS

Linux

References

Module

CoreUObject

Header

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

Include

#include "UObject/Field.h"

Syntax

class FFieldVariant

Remarks

Special container that can hold either UObject or FField. Exposes common interface of FFields and UObjects for easier transition from UProperties to FProperties. DO NOT ABUSE. IDEALLY THIS SHOULD ONLY BE FFIELD INTERNAL STRUCTURE FOR HOLDING A POINTER TO THE OWNER OF AN FFIELD.

Constructors

Name Description

Public function

FFieldVariant()

Public function

FFieldVariant

(
    const FField* InField
)

Public function

FFieldVariant

(
    T&& InObject
)

Public function

FFieldVariant

(
    TYPE_OF_NULLPTR
)

Functions

Name Description

Public function Const

TEnableIf< T...

 

Get()

Public function Const

TEnableIf<&#...

 

Get()

Public function Const

FString

 

GetClassName()

Public function Const

FName

 

GetFName()

Public function Const

FString

 

GetFullName()

Public function Const

FString

 

GetName()

Public function Const

UPackage ...

 

GetOutermost()

Public function Const

UClass *

 

GetOwnerClass()

Public function Const

FFieldVarian...

 

GetOwnerVariant()

Public function Const

FString

 

GetPathName()

Public function Const

void *

 

GetRawPointer()

Public function Const

bool

 

HasMetaData

(
    const FName& Key
)

Public function Const

bool

 

IsA()

Public function Const

bool

 

IsA

(
    const FFieldClass* InClass
)

Public function Const

bool

 

IsA

(
    const UClass* InClass
)

Public function Const

bool

 

IsNative()

Public function Const

bool

 

IsUObject()

Public function Const

bool

 

IsValid()

Public function Const

bool

 

IsValidLowLevel()

Public function Const

FField *

 

ToField()

Public function Const

FField *

 

ToFieldUnsafe()

FOR INTERNAL USE ONLY: Function that returns the owner as FField without checking if it's actually an FField

Public function Const

UObject *...

 

ToUObject()

Public function Const

UObject *...

 

ToUObjectUnsafe()

FOR INTERNAL USE ONLY: Function that returns the owner as UObject without checking if it's actually a UObject

Operators

Name Description

Public function Const

 

operator bool()

Public function Const

bool

 

operator!=

(
    const FFieldVariant& Other
)

Public function Const

bool

 

operator==

(
    const FFieldVariant& Other
)