FSoftClassProperty

Describes a reference variable to another class which may be nil, and will become valid or invalid at any point

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

References

Module

CoreUObject

Header

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

Include

#include "UObject/UnrealType.h"

Syntax

class FSoftClassProperty :
    public FSoftObjectProperty,
    public FSoftObjectProperty

Remarks

Describes a reference variable to another class which may be nil, and will become valid or invalid at any point

Variables

Name Description

Public variable

UClass *

 

MetaClass

Variables.

Constructors

Name Description

Public function

FSoftClassProperty

(
    UField* InField
)

Public function

FSoftClassProperty

(
    const FObjectInitializer& ObjectIn...
)

Public function

FSoftClassProperty

(
    FVTableHelper& Helper
)

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

Public function

FSoftClassProperty

(
    EInternal InInernal,
    FFieldClass* InClass
)

Public function

FSoftClassProperty

(
    FFieldVariant InOwner,
    const FName& InName,
    EObjectFlags InObjectFlags
)

Public function

FSoftClassProperty

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

Public function

FSoftClassProperty

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

Public function

FSoftClassProperty

(
    FFieldVariant InOwner,
    const FName& InName,
    EObjectFlags InObjectFlags,
    int32 InOffset,
    EPropertyFlags InFlags,
    UClass* InMetaClass
)

Functions

Name Description

Public function Static

void

 

__DefaultConstructor

(
    const FObjectInitializer& X
)

Public function Static

UObject *...

 

__VTableCtorCaller

(
    FVTableHelper& Helper
)

Public function Static

void

 

AddReferencedObjects

(
    UObject* InThis,
    FReferenceCollector& Collector
)

Public function Static

FField *

 

Construct

(
    const FFieldVariant& InOwner,
    const FName& InName,
    EObjectFlags InObjectFlags
)

Public function

void

 

SetMetaClass

(
    UClass* NewMetaClass
)

Setter function for this property's MetaClass member.

Public function

void

 

SetMetaClass

(
    UClass* NewMetaClass
)

Setter function for this property's MetaClass member.

Public function Static

FFieldClass ...

 

StaticClass()

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

uint64

 

StaticClassCastFlags()

Public function Static

uint64

 

StaticClassCastFlagsPrivate()

Public function Static

const TCHAR ...

 

StaticPackage()

Returns the package this class belongs in

Public function Static

void

 

StaticRegisterNativesFSoftClassProperty()

Overridden from FObjectPropertyBase

Name Description

Public function Virtual Const

FString

 

GetCPPTypeCustom

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

Overridden from FProperty

Name Description

Public function Virtual Const

FString

 

GetCPPMacroType

(
    FString& ExtendedTypeText
)

Public function Virtual Const

FString

 

GetCPPTypeForwardDeclaration()

Public function Virtual Const

bool

 

SameType

(
    const FProperty* Other
)

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

Overridden from UObject

Name Description

Public function Virtual

void

 

Serialize

(
    FArchive& Ar
)

Handles reading, writing, and reference collecting using FArchive.

Public function Virtual

void

 

Serialize

(
    FArchive& Ar
)

Handles reading, writing, and reference collecting using FArchive.

Overridden from FField

Name Description

Public function Virtual

void

 

AddReferencedObjects

(
    FReferenceCollector& Collector
)

Public function Virtual

void

 

BeginDestroy()

Public function Virtual

void

 

BeginDestroy()

Public function Virtual

void

 

PostDuplicate

(
    const FField& InField
)

Fixups after duplicating a Field

Overridden from TProperty

Name Description

Public function Virtual Const

FString

 

GetCPPType

(
    FString* ExtendedTypeText,
    uint32 CPPExportFlags
)

TProperty::GetCPPType should not be used here.

Operators

Name Description

Public function

void

 

operator delete

(
    void* InMem
)

Eliminate V1062 warning from PVS-Studio while keeping MSVC and Clang happy.

Public function

void

 

operator delete

(
    void* InMem
)

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.

Public function

void *

 

operator new

(
    const size_t InSize,
    void* InMem
)

Public function

void *

 

operator new

(
    const size_t InSize
)

Typedefs

Name

Description

Super

Typedef for the base class (FSoftObjectProperty)

Super

ThisClass

ThisClass

Typedef for FSoftClassProperty.

Constants

Name

Description

StaticClassFlags

Bitwise union of EClassFlags pertaining to this class.