MCRO
C++23 utilities for Unreal Engine.
Loading...
Searching...
No Matches
Mcro::UObjects::Init::FConstructObjectParameters Struct Reference

#include <Init.h>

Data Fields

UObject * Outer = (UObject*)GetTransientPackage()
 
const UClass * Class
 
FName Name = NAME_None
 
EObjectFlags Flags = RF_NoFlags
 
EInternalObjectFlags InternalSetFlags = EInternalObjectFlags::None
 
bool bCopyTransientsFromClassDefaults = false
 
bool bAssumeTemplateIsArchetype = false
 
UObject * Template = nullptr
 
FObjectInstancingGraph * InstanceGraph = nullptr
 
UPackage * ExternalPackage = nullptr
 
TFunction< void()> PropertyInitCallback
 

Detailed Description

Mirror of FStaticConstructObjectParameters but it's POCO and doesn't have a constructor

Definition at line 28 of file Init.h.

Field Documentation

◆ bAssumeTemplateIsArchetype

bool Mcro::UObjects::Init::FConstructObjectParameters::bAssumeTemplateIsArchetype = false

If true, Template is guaranteed to be an archetype

Definition at line 49 of file Init.h.

◆ bCopyTransientsFromClassDefaults

bool Mcro::UObjects::Init::FConstructObjectParameters::bCopyTransientsFromClassDefaults = false

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

Definition at line 46 of file Init.h.

◆ Class

const UClass* Mcro::UObjects::Init::FConstructObjectParameters::Class

The class of the object to create

Definition at line 34 of file Init.h.

◆ ExternalPackage

UPackage* Mcro::UObjects::Init::FConstructObjectParameters::ExternalPackage = nullptr

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

Definition at line 61 of file Init.h.

◆ Flags

EObjectFlags Mcro::UObjects::Init::FConstructObjectParameters::Flags = RF_NoFlags

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

Definition at line 40 of file Init.h.

◆ InstanceGraph

FObjectInstancingGraph* Mcro::UObjects::Init::FConstructObjectParameters::InstanceGraph = nullptr

Contains the mappings of instanced objects and components to their templates

Definition at line 58 of file Init.h.

◆ InternalSetFlags

EInternalObjectFlags Mcro::UObjects::Init::FConstructObjectParameters::InternalSetFlags = EInternalObjectFlags::None

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

Definition at line 43 of file Init.h.

◆ Name

FName Mcro::UObjects::Init::FConstructObjectParameters::Name = NAME_None

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_#.

Definition at line 37 of file Init.h.

◆ Outer

UObject* Mcro::UObjects::Init::FConstructObjectParameters::Outer = (UObject*)GetTransientPackage()

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

Definition at line 31 of file Init.h.

◆ PropertyInitCallback

TFunction<void()> Mcro::UObjects::Init::FConstructObjectParameters::PropertyInitCallback

Callback for custom code to initialize properties before PostInitProperties runs

Definition at line 64 of file Init.h.

◆ Template

UObject* Mcro::UObjects::Init::FConstructObjectParameters::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.

Definition at line 55 of file Init.h.


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