Navigation
API > API/Runtime > API/Runtime/CoreUObject > API/Runtime/CoreUObject/UObject
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TReturnType * CreateDefaultSubobject
(
FName SubobjectName, |
Create a component or subobject that will be instanced inside all instances of this class. | UObject/Object.h | |
TReturnType * CreateDefaultSubobject
(
FName SubobjectName, |
Create a component or subobject, allows creating a child class and returning the parent class. | UObject/Object.h | |
UObject * CreateDefaultSubobject
(
FName SubobjectFName, |
Utility function for templates below | UObject/Object.h |
CreateDefaultSubobject(FName, bool)
Description
Create a component or subobject that will be instanced inside all instances of this class.
| Name | CreateDefaultSubobject |
| Type | function |
| Header File | /Engine/Source/Runtime/CoreUObject/Public/UObject/Object.h |
| Include Path | #include "UObject/Object.h" |
template<class TReturnType>
TReturnType * CreateDefaultSubobject
(
FName SubobjectName,
bool bTransient
)
Parameters
| Name | Remarks |
|---|---|
| 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 |
CreateDefaultSubobject(FName, bool)
Description
Create a component or subobject, allows creating a child class and returning the parent class.
| Name | CreateDefaultSubobject |
| Type | function |
| Header File | /Engine/Source/Runtime/CoreUObject/Public/UObject/Object.h |
| Include Path | #include "UObject/Object.h" |
template<class TReturnType, class TClassToConstructByDefault>
TReturnType * CreateDefaultSubobject
(
FName SubobjectName,
bool bTransient
)
Parameters
| Name | Remarks |
|---|---|
| TReturnType | Class of return type, all overrides must be of this type |
| TClassToConstructByDefault | Class of object to actually construct, must be a subclass of TReturnType |
| 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 |
CreateDefaultSubobject(FName, UClass , UClass , bool, bool)
Description
Utility function for templates below
| Name | CreateDefaultSubobject |
| Type | function |
| Header File | /Engine/Source/Runtime/CoreUObject/Public/UObject/Object.h |
| Include Path | #include "UObject/Object.h" |
| Source | /Engine/Source/Runtime/CoreUObject/Private/UObject/Obj.cpp |
UObject * CreateDefaultSubobject
(
FName SubobjectFName,
UClass * ReturnType,
UClass * ClassToCreateByDefault,
bool bIsRequired,
bool bIsTransient
)