Karma Engine
Loading...
Searching...
No Matches
Karma::FStaticConstructObjectParameters Struct Reference

#include <UObjectGlobals.h>

Collaboration diagram for Karma::FStaticConstructObjectParameters:

Public Attributes

const UClassm_Class
 
UObjectm_Outer
 
std::string m_Name
 
EObjectFlags m_SetFlags = EObjectFlags::RF_NoFlags
 
EInternalObjectFlags m_InternalSetFlags = EInternalObjectFlags::None
 
bool m_bCopyTransientsFromClassDefaults = false
 
bool m_bAssumeTemplateIsArchetype = false
 
UObjectm_Template = nullptr
 

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.

Member Data Documentation

◆ m_bAssumeTemplateIsArchetype

bool Karma::FStaticConstructObjectParameters::m_bAssumeTemplateIsArchetype = false

If true, Template is guaranteed to be an archetype

◆ m_bCopyTransientsFromClassDefaults

bool Karma::FStaticConstructObjectParameters::m_bCopyTransientsFromClassDefaults = false

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

◆ m_Class

const UClass* Karma::FStaticConstructObjectParameters::m_Class

The class of the object to create

◆ m_InternalSetFlags

EInternalObjectFlags Karma::FStaticConstructObjectParameters::m_InternalSetFlags = EInternalObjectFlags::None

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

◆ m_Name

std::string Karma::FStaticConstructObjectParameters::m_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_#.

◆ m_Outer

UObject* Karma::FStaticConstructObjectParameters::m_Outer

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

◆ m_SetFlags

EObjectFlags Karma::FStaticConstructObjectParameters::m_SetFlags = EObjectFlags::RF_NoFlags

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

◆ m_Template

UObject* Karma::FStaticConstructObjectParameters::m_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 file: