Navigation
API > API/Runtime > API/Runtime/CoreUObject > API/Runtime/CoreUObject/FObjectInitializer
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TReturnType * CreateEditorOnlyDefaultSubobject
(
UObject* Outer, |
Create a component or subobject only to be used with the editor. | UObject/UObjectGlobals.h | |
UObject * CreateEditorOnlyDefaultSubobject
(
UObject* Outer, |
Create a component or subobject only to be used with the editor. | UObject/UObjectGlobals.h |
CreateEditorOnlyDefaultSubobject(UObject *, FName, bool)
Description
Create a component or subobject only to be used with the editor.
| Name | CreateEditorOnlyDefaultSubobject |
| Type | function |
| Header File | /Engine/Source/Runtime/CoreUObject/Public/UObject/UObjectGlobals.h |
| Include Path | #include "UObject/UObjectGlobals.h" |
template<class TReturnType>
TReturnType * CreateEditorOnlyDefaultSubobject
(
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 |
CreateEditorOnlyDefaultSubobject(UObject , FName, const UClass , bool)
Description
Create a component or subobject only to be used with the editor.
| Name | CreateEditorOnlyDefaultSubobject |
| 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 * CreateEditorOnlyDefaultSubobject
(
UObject * Outer,
FName SubobjectName,
const UClass * ReturnType,
bool bTransient
) const
Parameters
| Name | Remarks |
|---|---|
| Outer | outer to construct the subobject in |
| SubobjectName | name of the new component, this will be the same for all instances of this class |
| ReturnType | type of the new component |
| bTransient | true if the component is being assigned to a transient property |