Navigation
Unreal Engine C++ API Reference > Runtime > CoreUObject > UObject > FObjectInitializer > CreateDefaultSubobject
References
Module | CoreUObject |
Header | /Engine/Source/Runtime/CoreUObject/Public/UObject/UObjectGlobals.h |
Include | #include "UObject/UObjectGlobals.h" |
template<class TReturnType>
TReturnType &42; CreateDefaultSubobject
&40;
UObject &42; Outer,
FName SubobjectName,
bool bTransient
&41; const
Remarks
Create a component or subobject
Parameters
Name | Description |
---|---|
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 |
bTransient | true if the component is being assigned to a transient property |