KarmaEngine
Game Engine for practical learning and research purposes
|
Internal class to finalize UObject creation (initialize properties) after the real C++ constructor is called. More...
#include <UObjectGlobals.h>
Public Member Functions | |
FObjectInitializer () | |
Default Constructor, used when you are using the C++ "new" syntax. UObject::UObject will set the object pointer. | |
FObjectInitializer (UObject *InObj, UObject *InObjectArchetype, bool bInCopyTransientsFromClassDefaults, bool bInShouldInitializeProps, struct FObjectInstancingGraph *InInstanceGraph=nullptr) | |
~FObjectInitializer () | |
FORCEINLINE UObject * | GetObj () const |
Friends | |
class | UObject |
template<class T> | |
void | InternalConstructor (const class FObjectInitializer &X) |
Internal class to finalize UObject creation (initialize properties) after the real C++ constructor is called.
Karma::FObjectInitializer::FObjectInitializer | ( | ) |
Default Constructor, used when you are using the C++ "new" syntax. UObject::UObject will set the object pointer.
The custom constructor (InternalConstructor<TClass>) to be called after UObject allocation and during UObject initialization. Calls placement new with specified UObject class constructor.
Karma::FObjectInitializer::FObjectInitializer | ( | UObject * | InObj, |
UObject * | InObjectArchetype, | ||
bool | bInCopyTransientsFromClassDefaults, | ||
bool | bInShouldInitializeProps, | ||
struct FObjectInstancingGraph * | InInstanceGraph = nullptr ) |
Constructor
InObj | object to initialize, from static allocate object, after construction |
InObjectArchetype | object to initialize properties from |
bInCopyTransientsFromClassDefaults | - if true, copy transient from the class defaults instead of the pass in archetype ptr (often these are the same) |
bInShouldInitializeProps | false is a special case for changing base classes in UCCMake |
InInstanceGraph | passed instance graph |
Karma::FObjectInitializer::~FObjectInitializer | ( | ) |
Destructor for internal class to finalize UObject creation (initialize properties) after the real C++ constructor is called.
|
inline |
Return the object that is being constructed