Navigation
API > API/Runtime > API/Runtime/CoreUObject > API/Runtime/CoreUObject/UObject > API/Runtime/CoreUObject/UObject/UObject > API/Runtime/CoreUObject/UObject/UObject/CreateDefaultSubobject
References
Module | CoreUObject |
Header | /Engine/Source/Runtime/CoreUObject/Public/UObject/Object.h |
Include | #include "UObject/Object.h" |
template<class TReturnType>
TReturnType &42; CreateDefaultSubobject
&40;
FName SubobjectName,
bool bTransient
&41;
Remarks
Create a component or subobject.
Parameters
Name | Description |
---|---|
TReturnType | Class of return type, all overrides must be of this type |
SubobjectName | Name of the new component |
bTransient | True if the component is being assigned to a transient property. This does not make the component itself transient, but does stop it from inheriting parent defaults |