UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FScriptIntegrationObjectHelper Class Reference

#include <UObjectGlobals.h>

Static Public Member Functions

static void InitProperties (const FObjectInitializer &ObjectInitializer, UObject *Obj, UClass *DefaultsClass, UObject *DefaultData)
 
static bool InitSubobjectProperties (const FObjectInitializer &ObjectInitializer)
 
static void InstanceSubobjects (const FObjectInitializer &ObjectInitializer, UClass *Class, bool bNeedInstancing, bool bNeedSubobjectInstancing)
 
static void PostConstructInitObject (FObjectInitializer &ObjectInitializer)
 

Detailed Description

Helper class for script integrations to access some UObject innards. Needed for script-generated UObject classes

Member Function Documentation

◆ InitProperties()

static void FScriptIntegrationObjectHelper::InitProperties ( const FObjectInitializer ObjectInitializer,
UObject Obj,
UClass DefaultsClass,
UObject DefaultData 
)
inlinestatic

Binary initialize object properties to zero or defaults.

Parameters
ObjectInitializerFObjectInitializer helper
Objobject to initialize data for
DefaultsClassthe class to use for initializing the data
DefaultDatathe buffer containing the source data for the initialization

◆ InitSubobjectProperties()

static bool FScriptIntegrationObjectHelper::InitSubobjectProperties ( const FObjectInitializer ObjectInitializer)
inlinestatic

Calls InitProperties for any default subobjects created through this ObjectInitializer.

Parameters
bAllowInstancingIndicates whether the object's components may be copied from their templates.
Returns
true if there are any subobjects which require instancing.

◆ InstanceSubobjects()

static void FScriptIntegrationObjectHelper::InstanceSubobjects ( const FObjectInitializer ObjectInitializer,
UClass Class,
bool  bNeedInstancing,
bool  bNeedSubobjectInstancing 
)
inlinestatic

Create copies of the object's components from their templates.

Parameters
ObjectInitializerFObjectInitializer helper
ClassClass of the object we are initializing
bNeedInstancingIndicates whether the object's components need to be instanced
bNeedSubobjectInstancingIndicates whether subobjects of the object's components need to be instanced

◆ PostConstructInitObject()

static void FScriptIntegrationObjectHelper::PostConstructInitObject ( FObjectInitializer ObjectInitializer)
inlinestatic

Finalizes a constructed UObject by initializing properties, instancing & initializing sub-objects, etc.

Parameters
ObjectInitializerThe initializer to run PostConstructInit() on.

The documentation for this class was generated from the following file: