Navigation
API > API/Runtime > API/Runtime/CoreUObject > API/Runtime/CoreUObject/FObjectInitializer
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
const FObjectInitializer & SetDefaultSubobjectClass
(
FName SubobjectName |
Sets the class to use for a subobject defined in a base class, the class must be a subclass of the class used by the base class. | UObject/UObjectGlobals.h | |
const FObjectInitializer & SetDefaultSubobjectClass
(
FName SubobjectName, |
Sets the class to use for a subobject defined in a base class, the class must be a subclass of the class used by the base class. | UObject/UObjectGlobals.h |
SetDefaultSubobjectClass(FName)
Description
Sets the class to use for a subobject defined in a base class, the class must be a subclass of the class used by the base class.
| Name | SetDefaultSubobjectClass |
| Type | function |
| Header File | /Engine/Source/Runtime/CoreUObject/Public/UObject/UObjectGlobals.h |
| Include Path | #include "UObject/UObjectGlobals.h" |
template<class T>
const FObjectInitializer & SetDefaultSubobjectClass
(
FName SubobjectName
) const
Parameters
| Name | Remarks |
|---|---|
| SubobjectName | name of the new component or subobject |
SetDefaultSubobjectClass(FName, const UClass *)
Description
Sets the class to use for a subobject defined in a base class, the class must be a subclass of the class used by the base class.
| Name | SetDefaultSubobjectClass |
| Type | function |
| Header File | /Engine/Source/Runtime/CoreUObject/Public/UObject/UObjectGlobals.h |
| Include Path | #include "UObject/UObjectGlobals.h" |
const FObjectInitializer & SetDefaultSubobjectClass
(
FName SubobjectName,
const UClass * Class
) const
Parameters
| Name | Remarks |
|---|---|
| SubobjectName | name of the new component or subobject |
| Class | The class to use for the specified subobject or component. |