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

Mirror of FStaticConstructObjectParameters but it's a plain C++ object and doesn't have a constructor so designated initialization with named members is possible. More...

#include <Init.h>

Data Fields

UObject * 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).
 
const UClass * Class
 The class of the object to create.
 
FName 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_#.
 
EObjectFlags Flags = RF_NoFlags
 The ObjectFlags to assign to the new object. some flags can affect the behavior of constructing the object.
 
EInternalObjectFlags InternalSetFlags = EInternalObjectFlags::None
 The InternalObjectFlags to assign to the new object. Some flags can affect the behavior of constructing the object.
 
bool bCopyTransientsFromClassDefaults = false
 If true, copy transient from the class defaults instead of the pass in archetype ptr (often these are the same)
 
bool bAssumeTemplateIsArchetype = false
 If true, Template is guaranteed to be an archetype.
 
UObject * 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.
 
FObjectInstancingGraph * InstanceGraph = nullptr
 Contains the mappings of instanced objects and components to their templates.
 
UPackage * ExternalPackage = nullptr
 Assign an external Package to the created object if non-null.
 
TFunction< void()> PropertyInitCallback
 Callback for custom code to initialize properties before PostInitProperties runs.
 

Detailed Description

Mirror of FStaticConstructObjectParameters but it's a plain C++ object and doesn't have a constructor so designated initialization with named members is possible.

Definition at line 32 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 69 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 66 of file Init.h.

◆ Class

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

The class of the object to create.

Definition at line 42 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 82 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 54 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 79 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 60 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 48 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 39 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 85 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 76 of file Init.h.


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