UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FStaticConstructObjectParameters Struct Reference

#include <UObjectGlobals.h>

Public Member Functions

COREUOBJECT_API FStaticConstructObjectParameters (const UClass *InClass)
 

Public Attributes

const UClassClass
 
UObjectOuter
 
FName Name
 
EObjectFlags SetFlags = RF_NoFlags
 
EInternalObjectFlags InternalSetFlags = EInternalObjectFlags::None
 
bool bCopyTransientsFromClassDefaults = false
 
bool bAssumeTemplateIsArchetype = false
 
UObjectTemplate = nullptr
 
FObjectInstancingGraphInstanceGraph = nullptr
 
UPackageExternalPackage = nullptr
 
TFunction< void()> PropertyInitCallback
 
int32 SerialNumber = 0
 
friend FObjectInitializer
 

Detailed Description

This struct is used for passing parameter values to the StaticConstructObject_Internal() method. Only the constructor parameters are required to be valid - all other members are optional.

Constructor & Destructor Documentation

◆ FStaticConstructObjectParameters()

FStaticConstructObjectParameters::FStaticConstructObjectParameters ( const UClass InClass)

Member Data Documentation

◆ bAssumeTemplateIsArchetype

bool FStaticConstructObjectParameters::bAssumeTemplateIsArchetype = false

If true, Template is guaranteed to be an archetype

◆ bCopyTransientsFromClassDefaults

bool FStaticConstructObjectParameters::bCopyTransientsFromClassDefaults = false

If true, copy transient from the class defaults instead of the pass in archetype ptr(often these are the same)

◆ Class

const UClass* FStaticConstructObjectParameters::Class

The class of the object to create

◆ ExternalPackage

UPackage* FStaticConstructObjectParameters::ExternalPackage = nullptr

Assign an external Package to the created object if non-null

◆ FObjectInitializer

friend FStaticConstructObjectParameters::FObjectInitializer

◆ InstanceGraph

FObjectInstancingGraph* FStaticConstructObjectParameters::InstanceGraph = nullptr

Contains the mappings of instanced objects and components to their templates

◆ InternalSetFlags

EInternalObjectFlags FStaticConstructObjectParameters::InternalSetFlags = EInternalObjectFlags::None

The InternalObjectFlags to assign to the new object. some flags can affect the behavior of constructing the object.

◆ Name

FName FStaticConstructObjectParameters::Name

The name to give the new object.If no value(NAME_None) is specified, the object will be given a unique name in the form of ClassName_#.

◆ Outer

UObject* FStaticConstructObjectParameters::Outer

The object to create this object within (the Outer property for the new object will be set to the value specified here).

◆ PropertyInitCallback

TFunction<void()> FStaticConstructObjectParameters::PropertyInitCallback

Callback for custom code to initialize properties before PostInitProperties runs

◆ SerialNumber

int32 FStaticConstructObjectParameters::SerialNumber = 0

Existing serial number for the object

◆ SetFlags

EObjectFlags FStaticConstructObjectParameters::SetFlags = RF_NoFlags

The ObjectFlags to assign to the new object. some flags can affect the behavior of constructing the object.

◆ Template

UObject* FStaticConstructObjectParameters::Template = nullptr

If specified, the property values from this object will be copied to the new object, and the new object's ObjectArchetype value will be set to this object. If nullptr, the class default object is used instead.


The documentation for this struct was generated from the following files: