Navigation
API > API/Runtime > API/Runtime/CoreUObject > API/Runtime/CoreUObject/UObject > API/Runtime/CoreUObject/UObject/FObjectInitializer > API/Runtime/CoreUObject/UObject/FObjectInitializer/SetDefaultSubobjectClass
References
| Module | CoreUObject |
| Header | /Engine/Source/Runtime/CoreUObject/Public/UObject/UObjectGlobals.h |
| Include | #include "UObject/UObjectGlobals.h" |
template<class T>
const FObjectInitializer & SetDefaultSubobjectClass
&40;
FName SubobjectName
&41; const
Remarks
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.
Parameters
| Name | Description |
|---|---|
| SubobjectName | name of the new component or subobject |