GetPrivateStaticClassBody

Helper template allocate and construct a [UClass](API\Runtime\CoreUObject\UObject\UClass)

Windows
MacOS
Linux

References

Module

CoreUObject

Header

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

Include

#include "UObject/Class.h"

Source

/Engine/Source/Runtime/CoreUObject/Private/UObject/Class.cpp

Syntax

void GetPrivateStaticClassBody
(
    const TCHAR * PackageName,
    const TCHAR * Name,
    UClass *& ReturnClass,
    void() RegisterNativeFunc,
    uint32 InSize,
    uint32 InAlignment,
    EClassFlags InClassFlags,
    EClassCastFlags InClassCastFlags,
    const TCHAR * InConfigName,
    UClass::ClassConstructorType InClassConstructor,
    UClass::ClassVTableHelperCtorCallerType InClassVTableHelperCtorCaller,
    UClass::ClassAddReferencedObjectsType InClassAddReferencedObjects,
    UClass::StaticClassFunctionType InSuperClassFn,
    UClass::StaticClassFunctionType InWithinClassFn,
    bool bIsDynamic,
    UDynamicClass::DynamicClassInitializerType InDynamicClassInitializer
)

Remarks

Helper template allocate and construct a UClass

Parameters

Parameter

Description

PackageName

name of the package this class will be inside

Name

of the class

ReturnClass

reference to pointer to result. This must be PrivateStaticClass.

RegisterNativeFunc

Native function registration function pointer.

InSize

Size of the class

InAlignment

Alignment of the class

InClassFlags

Class flags

InClassCastFlags

Class cast flags

InConfigName

Class config name

InClassConstructor

Class constructor function pointer

InClassVTableHelperCtorCaller

Class constructor function for vtable pointer

InClassAddReferencedObjects

Class AddReferencedObjects function pointer

InSuperClassFn

Super class function pointer

WithinClass

Within class

bIsDynamic

true if the class can be constructed dynamically at runtime

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