Navigation
API > API/Runtime > API/Runtime/CoreUObject > API/Runtime/CoreUObject/FObjectInitializer
Overloads
| Name |
Remarks |
Include Path |
Unreal Specifiers |
|
Create a component or subobject that will be instanced inside all instances of this class. |
UObject/UObjectGlobals.h |
|
|
Create a component or subobject, allows creating a child class and returning the parent class. |
UObject/UObjectGlobals.h |
|
|
Create a component or subobject that will be instanced inside all instances of this class. |
UObject/UObjectGlobals.h |
|
CreateDefaultSubobject(UObject *, FName, bool)
Description
Create a component or subobject that will be instanced inside all instances of this class.
| |
|
| Name |
CreateDefaultSubobject |
| Type |
function |
| Header File |
/Engine/Source/Runtime/CoreUObject/Public/UObject/UObjectGlobals.h |
| Include Path |
#include "UObject/UObjectGlobals.h" |
template<class TReturnType>
TReturnType * CreateDefaultSubobject
(
UObject * Outer,
FName SubobjectName,
bool bTransient
) const
Parameters
| Name |
Remarks |
| TReturnType |
class of return type, all overrides must be of this type |
| Outer |
outer to construct the subobject in |
| SubobjectName |
name of the new component, this will be the same for all instances of this class |
| bTransient |
true if the component is being assigned to a transient property |
CreateDefaultSubobject(UObject *, FName, bool)
Description
Create a component or subobject, allows creating a child class and returning the parent class.
| |
|
| Name |
CreateDefaultSubobject |
| Type |
function |
| Header File |
/Engine/Source/Runtime/CoreUObject/Public/UObject/UObjectGlobals.h |
| Include Path |
#include "UObject/UObjectGlobals.h" |
template<class TReturnType, class TClassToConstructByDefault>
TReturnType * CreateDefaultSubobject
(
UObject * Outer,
FName SubobjectName,
bool bTransient
) const
Parameters
| Name |
Remarks |
| TReturnType |
class of return type, all overrides must be of this type |
| TClassToConstructByDefault |
class to construct by default |
| Outer |
outer to construct the subobject in |
| SubobjectName |
name of the new component, this will be the same for all instances of this class |
| bTransient |
true if the component is being assigned to a transient property |
CreateDefaultSubobject(UObject , FName, const UClass , const UClass *, bool, bool)
Description
Create a component or subobject that will be instanced inside all instances of this class.
| |
|
| Name |
CreateDefaultSubobject |
| Type |
function |
| Header File |
/Engine/Source/Runtime/CoreUObject/Public/UObject/UObjectGlobals.h |
| Include Path |
#include "UObject/UObjectGlobals.h" |
| Source |
/Engine/Source/Runtime/CoreUObject/Private/UObject/UObjectGlobals.cpp |
UObject * CreateDefaultSubobject
(
UObject * Outer,
FName SubobjectFName,
const UClass * ReturnType,
const UClass * ClassToCreateByDefault,
bool bIsRequired,
bool bIsTransient
) const
Parameters
| Name |
Remarks |
| Outer |
outer to construct the subobject in |
| SubobjectName |
name of the new component |
| ReturnType |
class of return type, all overrides must be of this type |
| ClassToConstructByDefault |
if the derived class has not overridden, create a component of this type |
| bIsRequired |
true if the component is required and will always be created even if DoNotCreateDefaultSubobject was specified. |
| bIsTransient |
true if the component is being assigned to a transient property |