Navigation
Unreal Engine C++ API Reference > Runtime > CoreUObject > UObject > FObjectInitializer > CreateEditorOnlyDefaultSubobject
References
Module | CoreUObject |
Header | /Engine/Source/Runtime/CoreUObject/Public/UObject/UObjectGlobals.h |
Include | #include "UObject/UObjectGlobals.h" |
Source | /Engine/Source/Runtime/CoreUObject/Private/UObject/UObjectGlobals.cpp |
UObject &42; CreateEditorOnlyDefaultSubobject
&40;
UObject &42; Outer,
FName SubobjectName,
const UClass &42; ReturnType,
bool bTransient
&41; const
Remarks
Create a component or subobject only to be used with the editor.
Parameters
Name | Description |
---|---|
Outer | outer to construct the subobject in |
SubobjectName | name of the new component |
ReturnType | type of the new component |
bTransient | true if the component is being assigned to a transient property |